aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2011-09-23 22:19:10 +0200
committerRichard Carlsson <[email protected]>2011-09-25 20:32:11 +0200
commit823f01895f33e559d737880d9207054a20dcc2f8 (patch)
treeba500bccafa444906118290f4dece71d896179cd
parent530d3b1c4b242d31fa035a3d3865ced2576ef1bb (diff)
downloadotp-823f01895f33e559d737880d9207054a20dcc2f8.tar.gz
otp-823f01895f33e559d737880d9207054a20dcc2f8.tar.bz2
otp-823f01895f33e559d737880d9207054a20dcc2f8.zip
removed some never-matching clauses reported by dialyzer
-rw-r--r--lib/edoc/src/edoc_parser.yrl7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/edoc/src/edoc_parser.yrl b/lib/edoc/src/edoc_parser.yrl
index 2871846c04..4d6428f75b 100644
--- a/lib/edoc/src/edoc_parser.yrl
+++ b/lib/edoc/src/edoc_parser.yrl
@@ -455,8 +455,6 @@ parse_throws(S, L) ->
-spec throw_error(term(), erl_scan:line()) -> no_return().
-throw_error({L, M, D}, _L0) ->
- throw({error,L,{format_error,M,D}});
throw_error({parse_spec, E}, L) ->
throw_error({"specification", E}, L);
throw_error({parse_typedef, E}, L) ->
@@ -468,7 +466,4 @@ throw_error({parse_throws, E}, L) ->
throw_error(parse_param, L) ->
throw({error, L, "missing parameter name"});
throw_error({Where, E}, L) when is_list(Where) ->
- throw({error,L,{"unknown error parsing ~s: ~P.",[Where,E,15]}});
-throw_error(E, L) ->
- %% Just in case.
- throw({error,L,{"unknown parse error: ~P.",[E,15]}}).
+ throw({error,L,{"unknown error parsing ~s: ~P.",[Where,E,15]}}).