8000 [Console] Remove unused elements · symfony/symfony@ca9ae81 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca9ae81

Browse files
committed
[Console] Remove unused elements
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent e3e5946 commit ca9ae81

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/Symfony/Component/Console/Completion/CompletionInput.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ final class CompletionInput extends ArgvInput
3333

3434
private $tokens;
3535
private $currentIndex;
36-
private $indexToArgumentIndex = [];
3736
private $completionType;
3837
private $completionName = null;
3938
private $completionValue = '';
@@ -58,7 +57,7 @@ public static function fromString(string $inputStr, int $currentIndex): self
5857
*/
5958
public static function fromTokens(array $tokens, int $currentIndex): self
6059
{
61-
$input = new static($tokens);
60+
$input = new self($tokens);
6261
$input->tokens = $tokens;
6362
$input->currentIndex = $currentIndex;
6463

@@ -187,17 +186,6 @@ protected function parseToken(string $token, bool $parseOptions): bool
187186
return $parseOptions;
188187
}
189188

190-
private function getOptionValueFromToken(string $optionToken): string
191-
{
192-
if (str_starts_with($optionToken, '--')) {
193-
// long option name
194-
return $this->getParameterOption($optionToken) ?: '';
195-
}
196-
197-
// short option name (might include value already if it directly followed the name)
198-
return $this->getParameterOption(substr($optionToken, 0, 2)) ?: '';
199-
}
200-
201189
private function getOptionFromToken(string $optionToken): ?InputOption
202190
{
203191
$optionName = ltrim($optionToken, '-');

0 commit comments

Comments
 (0)
0