Remove some unused variables and properties

This commit is contained in:
Titouan Galopin 2017-12-08 15:48:07 +01:00
parent ec4a160f0e
commit ec92d9b12e
4 changed files with 2 additions and 10 deletions

View File

@ -246,7 +246,7 @@ EOF
}
try {
$r = new \ReflectionClass($serviceId);
new \ReflectionClass($serviceId);
return true;
} catch (\ReflectionException $e) {

View File

@ -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)
{

View File

@ -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 */

View File

@ -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;