aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2011-05-09 13:03:22 +0200
committerAnthony Ramine <[email protected]>2011-05-09 13:06:47 +0200
commit094f5c1735f92bb13b3b02440f24781d37a393cb (patch)
tree937684cb61f5bbb5e439723cb8fd302ceacf4a9f
parent420f5baf98cb1b19209977e5552107ab3222767f (diff)
downloadcowboy-094f5c1735f92bb13b3b02440f24781d37a393cb.tar.gz
cowboy-094f5c1735f92bb13b3b02440f24781d37a393cb.tar.bz2
cowboy-094f5c1735f92bb13b3b02440f24781d37a393cb.zip
Remove a superfluous function clause in try_match
-rw-r--r--src/cowboy_dispatcher.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cowboy_dispatcher.erl b/src/cowboy_dispatcher.erl
index f540cd5..c006185 100644
--- a/src/cowboy_dispatcher.erl
+++ b/src/cowboy_dispatcher.erl
@@ -1,4 +1,5 @@
%% Copyright (c) 2011, Loïc Hoguin <[email protected]>
+%% Copyright (c) 2011, Anthony Ramine <[email protected]>
%%
%% Permission to use, copy, modify, and/or distribute this software for any
%% purpose with or without fee is hereby granted, provided that the above
@@ -97,8 +98,6 @@ match_path(Path, [{PathMatch, Handler, Opts}|Tail], HostBinds) ->
-spec try_match(Type::host | path, List::path_tokens(), Match::match_rule())
-> {true, Binds::bindings()} | false.
-try_match(_Type, _List, '_') ->
- {true, []};
try_match(_Type, List, Match) when length(List) =/= length(Match) ->
false;
try_match(host, List, Match) ->