changeset 14455:c57f9c911053

regexp.cc: Remove redundant condition in if statement regexp.cc (match): Remove redundant condition in if statement
author Rik <octave@nomad.inbox5.com>
date Sun, 11 Mar 2012 14:28:09 -0700
parents 2232931f2494
children 05635e4c605a
files liboctave/regexp.cc
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/regexp.cc	Sun Mar 11 14:14:01 2012 -0700
+++ b/liboctave/regexp.cc	Sun Mar 11 14:28:09 2012 -0700
@@ -333,8 +333,7 @@
             {
               if (ovector[2*i] >= 0 && ovector[2*i+1] > 0
                   && (i == 1 || ovector[2*i] != ovector[2*i-2]
-                      || ovector[2*i-1] != ovector[2*i+1])
-                  && ovector[2*i] >= 0 && ovector[2*i+1] > 0)
+                      || ovector[2*i-1] != ovector[2*i+1]))
                 {
                   token_extents(pos_match,0) = double (ovector[2*i]+1);
                   token_extents(pos_match++,1) = double (ovector[2*i+1]);