Skip to content

Commit

Permalink
remove unused _find_matching_route method
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca committed Dec 16, 2018
1 parent f05f468 commit 8d5115b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions bocadillo/routing/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,6 @@ def route_decorator(self, *args, **kwargs):
"""Register a route by decorating a view."""
return partial(self.add_route, *args, **kwargs)

def _find_matching_route(self, path: str) -> Tuple[Optional[str], dict]:
"""Find a route matching the given path."""
for name, route in self._routes.items():
kwargs = route.parse(path)
if kwargs is not None:
return route.pattern, kwargs
return None, {}

def match(self, path: str) -> Optional[RouteMatch]:
for pattern, route in self._routes.items():
params = route.parse(path)
Expand Down

0 comments on commit 8d5115b

Please sign in to comment.