Verified Commit 841b2163 authored by Jess's avatar Jess
Browse files

Issue #3325857 by longwave: Remove dead code from Container::reset()

(cherry picked from commit 3d6efbfd)
parent 66d0a88f
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -201,10 +201,6 @@ public function get($id, $invalid_behavior = ContainerInterface::EXCEPTION_ON_IN
   * a new instance of the shared service.
   */
  public function reset() {
    if (!empty($this->scopedServices)) {
      throw new LogicException('Resetting the container is not allowed when a scope is active.');
    }

    $this->services = [];
  }