aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src/erl_comment_scan.erl
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2010-05-06 17:07:33 +0300
committerBjörn Gustavsson <[email protected]>2010-05-06 18:09:47 +0200
commitccf1c5d20bcf76139d4f08a3da0f9954636fea10 (patch)
treeedd449d44b30a7fca16a7e05b25a60cea58242ed /lib/syntax_tools/src/erl_comment_scan.erl
parenta21a9dac550bcb976fa074d7005499a4d6b55791 (diff)
downloadotp-ccf1c5d20bcf76139d4f08a3da0f9954636fea10.tar.gz
otp-ccf1c5d20bcf76139d4f08a3da0f9954636fea10.tar.bz2
otp-ccf1c5d20bcf76139d4f08a3da0f9954636fea10.zip
Fix an erroneous spec
While at it, take out redundant code.
Diffstat (limited to 'lib/syntax_tools/src/erl_comment_scan.erl')
-rw-r--r--lib/syntax_tools/src/erl_comment_scan.erl4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/syntax_tools/src/erl_comment_scan.erl b/lib/syntax_tools/src/erl_comment_scan.erl
index 09ce21a428..e2c6976a2b 100644
--- a/lib/syntax_tools/src/erl_comment_scan.erl
+++ b/lib/syntax_tools/src/erl_comment_scan.erl
@@ -273,12 +273,8 @@ join_lines([], Txt, L, Col, Ind) ->
filename([C|T]) when is_integer(C), C > 0, C =< 255 ->
[C | filename(T)];
-filename([H|T]) ->
- filename(H) ++ filename(T);
filename([]) ->
[];
-filename(N) when is_atom(N) ->
- atom_to_list(N);
filename(N) ->
report_error("bad filename: `~P'.", [N, 25]),
exit(error).