aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/filelib.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-02-13 07:39:06 +0100
committerBjörn Gustavsson <[email protected]>2013-02-13 11:58:45 +0100
commit5abcc77292e59a951e5a53c1641081f973d25c90 (patch)
tree5d53b4b71c47f5f46213f43fdc10fe59bccd3b78 /lib/stdlib/src/filelib.erl
parent7d22cccf18dd44507ee072315036d5023d09d47a (diff)
downloadotp-5abcc77292e59a951e5a53c1641081f973d25c90.tar.gz
otp-5abcc77292e59a951e5a53c1641081f973d25c90.tar.bz2
otp-5abcc77292e59a951e5a53c1641081f973d25c90.zip
Remove special case handling "-" at the beginning of a charset
We don't need this special case, since "-" is only special between two other characters.
Diffstat (limited to 'lib/stdlib/src/filelib.erl')
-rw-r--r--lib/stdlib/src/filelib.erl2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/stdlib/src/filelib.erl b/lib/stdlib/src/filelib.erl
index 93e700284c..7df72a93e5 100644
--- a/lib/stdlib/src/filelib.erl
+++ b/lib/stdlib/src/filelib.erl
@@ -447,8 +447,6 @@ compile_part([], _Upto, Result) ->
compile_charset([$]|Rest], Ordset) ->
compile_charset1(Rest, ordsets:add_element($], Ordset));
-compile_charset([$-|Rest], Ordset) ->
- compile_charset1(Rest, ordsets:add_element($-, Ordset));
compile_charset([], _Ordset) ->
error;
compile_charset(List, Ordset) ->