Skip to content

Commit be39a09

Browse files
committed
Remove unused private methods
1 parent 7ed43d1 commit be39a09

File tree

6 files changed

+0
-80
lines changed

6 files changed

+0
-80
lines changed

src/Symfony/Component/ErrorHandler/Tests/Exception/FlattenExceptionTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,4 @@ public function testToStringParent()
292292
$this->assertSame($exception->getTraceAsString(), $flattened->getTraceAsString());
293293
$this->assertSame($exception->__toString(), $flattened->getAsString());
294294
}
295-
296-
private function createException($foo): \Exception
297-
{
298-
return new \Exception();
299-
}
300295
}

src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -854,25 +854,6 @@ public function testCreateViewFlatlabelTranslationParametersClosureReceivesValue
854854
$this->assertFlatViewWithlabelTranslationParameters($view);
855855
}
856856

857-
private function assertScalarListWithChoiceValues(ChoiceListInterface $list)
858-
{
859-
$this->assertSame(['a', 'b', 'c', 'd'], $list->getValues());
860-
861-
$this->assertSame([
862-
'a' => 'a',
863-
'b' => 'b',
864-
'c' => 'c',
865-
'd' => 'd',
866-
], $list->getChoices());
867-
868-
$this->assertSame([
869-
'a' => 'A',
870-
'b' => 'B',
871-
'c' => 'C',
872-
'd' => 'D',
873-
], $list->getOriginalKeys());
874-
}
875-
876857
private function assertObjectListWithGeneratedValues(ChoiceListInterface $list)
877858
{
878859
$this->assertSame(['0', '1', '2', '3'], $list->getValues());
@@ -892,25 +873,6 @@ private function assertObjectListWithGeneratedValues(ChoiceListInterface $list)
892873
], $list->getOriginalKeys());
893874
}
894875

895-
private function assertScalarListWithCustomValues(ChoiceListInterface $list)
896-
{
897-
$this->assertSame(['a', 'b', '1', '2'], $list->getValues());
898-
899-
$this->assertSame([
900-
'a' => 'a',
901-
'b' => 'b',
902-
1 => 'c',
903-
2 => 'd',
904-
], $list->getChoices());
905-
906-
$this->assertSame([
907-
'a' => 'A',
908-
'b' => 'B',
909-
1 => 'C',
910-
2 => 'D',
911-
], $list->getOriginalKeys());
912-
}
913-
914876
private function assertObjectListWithCustomValues(ChoiceListInterface $list)
915877
{
916878
$this->assertSame(['a', 'b', '1', '2'], $list->getValues());

src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -524,11 +524,6 @@ public function setup(): void
524524
$this->autoSetup = false;
525525
}
526526

527-
private function getCurrentTimeInMilliseconds(): int
528-
{
529-
return (int) (microtime(true) * 1000);
530-
}
531-
532527
public function cleanup(): void
533528
{
534529
static $unlink = true;

src/Symfony/Component/Routing/Loader/Configurator/CollectionConfigurator.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,4 @@ final public function host(string|array $host): static
114114

115115
return $this;
116116
}
117-
118-
private function createRoute(string $path): Route
119-
{
120-
return (clone $this->route)->setPath($path);
121-
}
122117
}

src/Symfony/Component/VarDumper/Tests/Dumper/CliDumperTest.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -449,22 +449,4 @@ public function testDumpArrayWithColor($value, $flags, $expectedOut)
449449

450450
$this->assertSame($expectedOut, $out);
451451
}
452-
453-
private function getSpecialVars()
454-
{
455-
foreach (array_keys($GLOBALS) as $var) {
456-
if ('GLOBALS' !== $var) {
457-
unset($GLOBALS[$var]);
458-
}
459-
}
460-
461-
$var = function &() {
462-
$var = [];
463-
$var[] = &$var;
464-
465-
return $var;
466-
};
467-
468-
return eval('return [$var(), $GLOBALS, &$GLOBALS];');
469-
}
470452
}

src/Symfony/Component/VarExporter/LazyGhostTrait.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,4 @@ public function __destruct()
379379
parent::__destruct();
380380
}
381381
}
382-
383-
private function setLazyObjectAsInitialized(bool $initialized): void
384-
{
385-
$state = $this->lazyObjectState ?? null;
386-
387-
if ($state && !\is_array($state->initializer)) {
388-
$state->status = $initialized ? LazyObjectState::STATUS_INITIALIZED_FULL : LazyObjectState::STATUS_UNINITIALIZED_FULL;
389-
}
390-
}
391382
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy