From ec92d9b12e21663035b16d6d5f406a1fd2414cc0 Mon Sep 17 00:00:00 2001 From: Titouan Galopin Date: Fri, 8 Dec 2017 15:48:07 +0100 Subject: [PATCH] Remove some unused variables and properties --- .../FrameworkBundle/Command/ContainerDebugCommand.php | 2 +- src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php | 2 +- src/Symfony/Component/Lock/Store/MemcachedStore.php | 6 ------ src/Symfony/Component/Yaml/Parser.php | 2 -- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php index b86df408fd..ccc6b38d92 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php @@ -246,7 +246,7 @@ EOF } try { - $r = new \ReflectionClass($serviceId); + new \ReflectionClass($serviceId); return true; } catch (\ReflectionException $e) { diff --git a/src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php b/src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php index 9dd6068351..72bbc143ce 100644 --- a/src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php @@ -32,7 +32,7 @@ class TagAwareAdapter implements TagAwareAdapterInterface, PruneableInterface, R private $setCacheItemTags; private $getTagsByKey; private $invalidateTags; - private $tagsPool; + private $tags; public function __construct(AdapterInterface $itemsPool, AdapterInterface $tagsPool = null) { diff --git a/src/Symfony/Component/Lock/Store/MemcachedStore.php b/src/Symfony/Component/Lock/Store/MemcachedStore.php index beaad69962..8e9db10cd0 100644 --- a/src/Symfony/Component/Lock/Store/MemcachedStore.php +++ b/src/Symfony/Component/Lock/Store/MemcachedStore.php @@ -24,12 +24,6 @@ use Symfony\Component\Lock\StoreInterface; */ class MemcachedStore implements StoreInterface { - private static $defaultClientOptions = array( - 'persistent_id' => null, - 'username' => null, - 'password' => null, - ); - private $memcached; private $initialTtl; /** @var bool */ diff --git a/src/Symfony/Component/Yaml/Parser.php b/src/Symfony/Component/Yaml/Parser.php index ddab3990fd..ed8121c810 100644 --- a/src/Symfony/Component/Yaml/Parser.php +++ b/src/Symfony/Component/Yaml/Parser.php @@ -362,8 +362,6 @@ class Parser @trigger_error($this->getDeprecationMessage(sprintf('Duplicate key "%s" detected whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated since version 3.2 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.', $key)), E_USER_DEPRECATED); } } else { - // remember the parsed line number here in case we need it to provide some contexts in error messages below - $realCurrentLineNbKey = $this->getRealCurrentLineNb(); $value = $this->parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(), $flags); if ('<<' === $key) { $this->refs[$refMatches['ref']] = $value;