Browse Source

Fixes some warnings in System.Web.Extensions.dll

QuickJack 14 years ago
parent
commit
d0b2d82e13

+ 0 - 1
mcs/class/System.Web.Extensions/System.Web.Script.Serialization/JsonDeserializer.cs

@@ -302,7 +302,6 @@ namespace System.Web.Script.Serialization
 		JsonType jsonType;
 		
 		bool escaped;
-		bool negated;
 		int state;
 		Stack <string> currentKey;
 		StringBuilder buffer;

+ 0 - 2
mcs/class/System.Web.Extensions/System.Web.Script.Serialization/JsonSerializer.cs

@@ -352,7 +352,6 @@ namespace System.Web.Script.Serialization
 		{
 			StringBuilderExtensions.AppendCount (output, maxJsonLength, "{");
 			bool first = true;
-			string key;
 			
 			foreach (DictionaryEntry entry in dict) {
 				WriteDictionaryEntry (output, first, entry.Key as string, entry.Value);
@@ -367,7 +366,6 @@ namespace System.Web.Script.Serialization
 		{
 			StringBuilderExtensions.AppendCount (output, maxJsonLength, "{");
 			bool first = true;
-			string key;
 			
 			foreach (KeyValuePair <TKey, TValue> kvp in dict) {
 				WriteDictionaryEntry (output, first, kvp.Key as string, kvp.Value);

+ 0 - 2
mcs/class/System.Web.Extensions/System.Web.UI.WebControls/ListView.cs

@@ -1020,7 +1020,6 @@ namespace System.Web.UI.WebControls
 			int itemPosInGroup = firstItemIndexInGroup;
 			int groupItemCounter = groupItemCount;
 			ListViewItem lvi;
-			ListViewItem container;
 			bool needSeparator = false;
 			bool haveSeparatorTemplate = _itemSeparatorTemplate != null;
 			
@@ -1032,7 +1031,6 @@ namespace System.Web.UI.WebControls
 			}
 
 			int displayIndex = 0;
-			ListViewDataItem lvdi;
 			int startIndex = dataSource.StartRowIndex;
 			int dataCount = dataSource.Count;
 			int numberOfGroups = (dataCount / groupItemCount) + (dataCount % groupItemCount) - 1;

+ 0 - 2
mcs/class/System.Web.Extensions/System.Web.UI/ScriptManager.cs

@@ -1602,8 +1602,6 @@ namespace System.Web.UI
 		{
 			public delegate void TextParserHiddenFieldParsedEventHandler (TextParser sender, TextParserHiddenFieldParsedEventArgs args);
 
-			static object textParserHiddenFieldParsedEvent = new object ();
-			
 			int _state;
 			char _charState = (char) 255;
 			const char nullCharState = (char) 255;