From 094f5c1735f92bb13b3b02440f24781d37a393cb Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Mon, 9 May 2011 13:03:22 +0200 Subject: Remove a superfluous function clause in try_match --- src/cowboy_dispatcher.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 +%% Copyright (c) 2011, Anthony Ramine %% %% 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) -> -- cgit v1.2.3