Explorar el Código

2006-01-24 Atsushi Enomoto <[email protected]>

	* UTF8Encoding.cs : reverted the previous change. Looks like it broke
	  the build.


svn path=/trunk/mcs/; revision=55989
Atsushi Eno hace 20 años
padre
commit
c24aec4964

+ 5 - 0
mcs/class/corlib/System.Text/ChangeLog

@@ -1,3 +1,8 @@
+2006-01-24  Atsushi Enomoto  <[email protected]>
+
+	* UTF8Encoding.cs : reverted the previous change. Looks like it broke
+	  the build.
+
 2006-01-24  Atsushi Enomoto  <[email protected]>
 
 	* UTF8Encoding.cs : InternalGetCharCount() optimization: fast path

+ 0 - 8
mcs/class/corlib/System.Text/UTF8Encoding.cs

@@ -394,14 +394,6 @@ public class UTF8Encoding : Encoding
 			throw new ArgumentOutOfRangeException ("count", _("ArgRange_Array"));
 		}
 
-		// fast path for ASCII range
-		for (int end = index + count; index < end; count--) {
-			if (bytes [index] < 0x80)
-				index++;
-			else
-				break;
-		}
-
 		// Determine the number of characters that we have.
 		uint ch;
 		int length = 0;