summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pugixpath.cpp23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp
index f2e051c..e6f55c9 100644
--- a/src/pugixpath.cpp
+++ b/src/pugixpath.cpp
@@ -1299,11 +1299,6 @@ namespace pugi
return Cdouble()(lhs->eval_number(c), rhs->eval_number(c));
else if (lhs->rettype() == ast_type_string || rhs->rettype() == ast_type_string)
return Cstring()(lhs->eval_string(c), rhs->eval_string(c));
- else
- {
- assert(!"Wrong types");
- return false;
- }
}
else if (lhs->rettype() == ast_type_node_set && rhs->rettype() == ast_type_node_set)
{
@@ -1349,11 +1344,6 @@ namespace pugi
return false;
}
- else
- {
- assert(!"Wrong types");
- return false;
- }
}
else if (lhs->rettype() == ast_type_node_set && rhs->rettype() != ast_type_node_set)
{
@@ -1385,17 +1375,10 @@ namespace pugi
return false;
}
- else
- {
- assert(!"Wrong types");
- return false;
- }
- }
- else
- {
- assert(!"Wrong types");
- return false;
}
+
+ assert(!"Wrong types");
+ return false;
}
};