From b784c9b70a6ff660288bb5a6f8959875f1a7e440 Mon Sep 17 00:00:00 2001 From: Nikita Gusakov Date: Thu, 9 Oct 2014 09:39:59 +0400 Subject: [PATCH] [Router] Cleanup --- src/Symfony/Component/Routing/RouteCompiler.php | 4 ---- src/Symfony/Component/Routing/Router.php | 1 - 2 files changed, 5 deletions(-) diff --git a/src/Symfony/Component/Routing/RouteCompiler.php b/src/Symfony/Component/Routing/RouteCompiler.php index 9234b42b345b0..095145fd7cfc2 100644 --- a/src/Symfony/Component/Routing/RouteCompiler.php +++ b/src/Symfony/Component/Routing/RouteCompiler.php @@ -37,12 +37,8 @@ class RouteCompiler implements RouteCompilerInterface */ public static function compile(Route $route) { - $staticPrefix = null; $hostVariables = array(); - $pathVariables = array(); $variables = array(); - $tokens = array(); - $regex = null; $hostRegex = null; $hostTokens = array(); diff --git a/src/Symfony/Component/Routing/Router.php b/src/Symfony/Component/Routing/Router.php index bd7ec4b2a86aa..1f13aba17cba2 100644 --- a/src/Symfony/Component/Routing/Router.php +++ b/src/Symfony/Component/Routing/Router.php @@ -21,7 +21,6 @@ use Symfony\Component\Routing\Matcher\UrlMatcherInterface; use Symfony\Component\Routing\Matcher\Dumper\MatcherDumperInterface; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\ExpressionLanguage\ExpressionLanguage; use Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface; /**