2010-03-20 Miguel de Icaza <miguel@novell.com>
authorMiguel de Icaza <miguel@gnome.org>
Sat, 20 Mar 2010 22:56:32 +0000 (22:56 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sat, 20 Mar 2010 22:56:32 +0000 (22:56 -0000)
* RxInterpreter.cs: Removed warnings.

svn path=/trunk/mcs/; revision=153948

mcs/class/System/System.Text.RegularExpressions/ChangeLog
mcs/class/System/System.Text.RegularExpressions/RxInterpreter.cs

index d706ed3ffb5e4a255bce33d702c5fda577a06312..4850f74212a369dfc2bfb38252aaa0fea496bab3 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-20  Miguel de Icaza  <miguel@novell.com>
+
+       * RxInterpreter.cs: Removed warnings.
+
 2010-02-03  Rodrigo Kumpera  <rkumpera@novell.com>
 
        * BaseMachine.cs (Split): Don't add empty strings if they don't come from
index 945b2634095350677d57b953efb8e5c8814770b4..3f5d987ed91d2484e6908ed635808da94d1c0af5 100644 (file)
@@ -1,6 +1,9 @@
 
 // Based upon interpreter.cs, written by Dan Lewis (dlewis@gmx.co.uk)
-
+//
+// There are a couple of bits flagged with DEAD_CODE which are bits that do
+// not seem to have been completed
+//
 using System;
 using System.Collections;
 using System.Globalization;
@@ -899,7 +902,7 @@ namespace System.Text.RegularExpressions {
                                
                                case RxOp.CategoryAnySingleline:
                                        if (strpos < string_end) {
-                                               char c = str [strpos];
+                                               // char c = str [strpos];
                                                if ((true)) {
                                                        strpos ++;
                                                        if (char_group_end != 0)
@@ -1258,6 +1261,7 @@ namespace System.Text.RegularExpressions {
                                        return false;
                                case RxOp.NoCategoryAnySingleline:
                                        if (strpos < string_end) {
+#if DEAD_CODE
                                                char c = str [strpos];
                                                if (!(true)) {
                                                        pc += 1;
@@ -1268,6 +1272,7 @@ namespace System.Text.RegularExpressions {
                                                        }
                                                        continue;
                                                }
+#endif
                                        }
                                        return false;
                                case RxOp.NoCategoryWord:
@@ -1575,7 +1580,7 @@ namespace System.Text.RegularExpressions {
                                        continue;
                                case RxOp.CategoryAnySinglelineReverse:
                                        if (strpos > 0) {
-                                               char c = str [strpos - 1];
+                                               //char c = str [strpos - 1];
                                                if ((true)) {
                                                        strpos --;
                                                        if (char_group_end != 0)
@@ -1904,6 +1909,7 @@ namespace System.Text.RegularExpressions {
                                        return false;
                                case RxOp.NoCategoryAnySinglelineReverse:
                                        if (strpos > 0) {
+#if DEAD_CODe
                                                char c = str [strpos - 1];
                                                if (!(true)) {
                                                        pc += 1;
@@ -1914,6 +1920,7 @@ namespace System.Text.RegularExpressions {
                                                        }
                                                        continue;
                                                }
+#endif
                                        }
                                        return false;
                                case RxOp.NoCategoryWordReverse: