diff --git a/core/lib/Drupal/Core/Template/TwigExtension.php b/core/lib/Drupal/Core/Template/TwigExtension.php
index c49b9f6379c9276c15b71de25b3aebe5d9b77837..f8b156ad5eae4b88a07a9760d70eb718537fe859 100644
--- a/core/lib/Drupal/Core/Template/TwigExtension.php
+++ b/core/lib/Drupal/Core/Template/TwigExtension.php
@@ -80,65 +80,6 @@ public function __construct(RendererInterface $renderer, UrlGeneratorInterface $
     $this->dateFormatter = $date_formatter;
   }
 
-  /**
-   * Sets the URL generator.
-   *
-   * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
-   *   The URL generator.
-   *
-   * @return $this
-   *
-   * @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0.
-   */
-  public function setGenerators(UrlGeneratorInterface $url_generator) {
-    return $this->setUrlGenerator($url_generator);
-  }
-
-  /**
-   * Sets the URL generator.
-   *
-   * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
-   *   The URL generator.
-   *
-   * @return $this
-   *
-   * @deprecated in drupal:8.3.0 and is removed from drupal:9.0.0.
-   */
-  public function setUrlGenerator(UrlGeneratorInterface $url_generator) {
-    $this->urlGenerator = $url_generator;
-    return $this;
-  }
-
-  /**
-   * Sets the theme manager.
-   *
-   * @param \Drupal\Core\Theme\ThemeManagerInterface $theme_manager
-   *   The theme manager.
-   *
-   * @return $this
-   *
-   * @deprecated in drupal:8.3.0 and is removed from drupal:9.0.0.
-   */
-  public function setThemeManager(ThemeManagerInterface $theme_manager) {
-    $this->themeManager = $theme_manager;
-    return $this;
-  }
-
-  /**
-   * Sets the date formatter.
-   *
-   * @param \Drupal\Core\Datetime\DateFormatter $date_formatter
-   *   The date formatter.
-   *
-   * @return $this
-   *
-   * @deprecated in drupal:8.3.0 and is removed from drupal:9.0.0.
-   */
-  public function setDateFormatter(DateFormatterInterface $date_formatter) {
-    $this->dateFormatter = $date_formatter;
-    return $this;
-  }
-
   /**
    * {@inheritdoc}
    */