aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmerl/src/xmerl_xpath_scan.erl
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2016-05-19 22:38:53 +0200
committerKostis Sagonas <[email protected]>2016-05-19 22:38:53 +0200
commit98e6d88d8eaa09a99b5027a50f876c64864e8ce3 (patch)
tree1c965517a47285e35395b196199cd3a907b7cad2 /lib/xmerl/src/xmerl_xpath_scan.erl
parent37b60d5b365e814c83974cdac0f1eed04dab0ad3 (diff)
downloadotp-98e6d88d8eaa09a99b5027a50f876c64864e8ce3.tar.gz
otp-98e6d88d8eaa09a99b5027a50f876c64864e8ce3.tar.bz2
otp-98e6d88d8eaa09a99b5027a50f876c64864e8ce3.zip
xmerl: Comment out unreachable clauses
A slightly stronger version of Dialyzer discovered that various clauses in the code of `xmerl` are unreachable. This code was commented out; There is little reason to have code bloat that simply causes confusion. An alternative change would be to simply delete this code.
Diffstat (limited to 'lib/xmerl/src/xmerl_xpath_scan.erl')
-rw-r--r--lib/xmerl/src/xmerl_xpath_scan.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/xmerl/src/xmerl_xpath_scan.erl b/lib/xmerl/src/xmerl_xpath_scan.erl
index 5ef5dce737..9032a01eca 100644
--- a/lib/xmerl/src/xmerl_xpath_scan.erl
+++ b/lib/xmerl/src/xmerl_xpath_scan.erl
@@ -286,13 +286,13 @@ strip_ws(T) ->
T.
-special_token('@') -> true;
+%% special_token('@') -> true;
special_token('::') -> true;
special_token(',') -> true;
special_token('(') -> true;
special_token('[') -> true;
special_token('/') -> true;
-special_token('//') -> true;
+%% special_token('//') -> true;
special_token('|') -> true;
special_token('+') -> true;
special_token('-') -> true;
@@ -306,5 +306,4 @@ special_token('and') -> true;
special_token('or') -> true;
special_token('mod') -> true;
special_token('div') -> true;
-special_token(_) ->
- false.
+special_token(_) -> false.