core/lib/Drupal/Core/Routing/BcRoute.php | 34 -------------------------------- 1 file changed, 34 deletions(-) diff --git a/core/lib/Drupal/Core/Routing/BcRoute.php b/core/lib/Drupal/Core/Routing/BcRoute.php index a0af044..e6a7658 100644 --- a/core/lib/Drupal/Core/Routing/BcRoute.php +++ b/core/lib/Drupal/Core/Routing/BcRoute.php @@ -26,38 +26,4 @@ public function __construct() { $this->setOption('bc_route', TRUE); } - /** - * {@inheritdoc} - */ - public function serialize() { - // Ensure this route definition is as empty as possible when it gets stored. - return serialize([ - 'path' => '', - 'host' => '', - 'defaults' => [], - 'requirements' => [], - 'options' => [], - 'schemes' => [], - 'methods' => [], - ]); - } - - /** - * Inherit definition of target route, for use in outbound route processors. - * - * @param \Symfony\Component\Routing\Route $target_route - * The route that is the redirect target. - * - * @return $this - */ - public function inheritDefinitionFromTargetRoute(Route $target_route) { - $this->setPath($target_route->getPath()); - $this->setDefaults($target_route->getDefaults()); - $this->setRequirements($target_route->getRequirements()); - $this->setOptions($target_route->getOptions()); - $this->setHost($target_route->getHost()); - $this->setSchemes($target_route->getSchemes()); - $this->setMethods($target_route->getMethods()); - } - }