8000 minor #25402 Remove some unused variables and properties (tgalopin) · symfony/symfony@8621bd2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8621bd2

Browse files
minor #25402 Remove some unused variables and properties (tgalopin)
This PR was merged into the 3.4 branch. Discussion ---------- Remove some unused variables and properties | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT Analyzing symfony/symfony using https://insight.sensiolabs.com, I found several chunks of dead code. This PR removes them in the 3.4 branch. Commits ------- ec92d9b Remove some unused variables and properties
2 parents e9f7461 + ec92d9b commit 8621bd2

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function filterToServiceTypes($serviceId)
246246
}
247247

248248
try {
249-
$r = new \ReflectionClass($serviceId);
249+
new \ReflectionClass($serviceId);
250250

251251
return true;
252252
} catch (\ReflectionException $e) {

src/Symfony/Component/Cache/Adapter/TagAwareAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TagAwareAdapter implements TagAwareAdapterInterface, PruneableInterface, R
3232
private $setCacheItemTags;
3333
private $getTagsByKey;
3434
private $invalidateTags;
35-
private $tagsPool;
35+
private $tags;
3636

3737
public function __construct(AdapterInterface $itemsPool, AdapterInterface $tagsPool = null)
3838
{

src/Symfony/Component/Lock/Store/MemcachedStore.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@
2424
*/
2525
class MemcachedStore implements StoreInterface
2626
{
27-
private static $defaultClientOptions = array(
28-
'persistent_id' => null,
29-
'username' => null,
30-
'password' => null,
31-
);
32-
3327
private $memcached;
3428
private $initialTtl;
3529
/** @var bool */

src/Symfony/Component/Yaml/Parser.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,6 @@ private function doParse($value, $flags)
362362
@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);
363363
}
364364
} else {
365-
// remember the parsed line number here in case we need it to provide some contexts in error messages below
366-
$realCurrentLineNbKey = $this->getRealCurrentLineNb();
367365
$value = $this->parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(), $flags);
368366
if ('<<' === $key) {
369367
$this->refs[$refMatches['ref']] = $value;

0 commit comments

Comments
 (0)
0