[libxml2] Remove redundant code in xmlXPathCompRelationalExpr



commit e79a903f3e7d5af5da5a738eea9b0c3c9d891ba3
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Mon May 20 13:22:49 2019 +0200

    Remove redundant code in xmlXPathCompRelationalExpr
    
    Thanks to Anish K Kurian for the report. Closes #59.

 xpath.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/xpath.c b/xpath.c
index e68975ef..4734ecc4 100644
--- a/xpath.c
+++ b/xpath.c
@@ -10805,10 +10805,7 @@ xmlXPathCompRelationalExpr(xmlXPathParserContextPtr ctxt) {
     xmlXPathCompAdditiveExpr(ctxt);
     CHECK_ERROR;
     SKIP_BLANKS;
-    while ((CUR == '<') ||
-           (CUR == '>') ||
-           ((CUR == '<') && (NXT(1) == '=')) ||
-           ((CUR == '>') && (NXT(1) == '='))) {
+    while ((CUR == '<') || (CUR == '>')) {
        int inf, strict;
        int op1 = ctxt->comp->last;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]