From 5907444e81113438a3e34567be2c9651f406d582 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sat, 14 Nov 2020 15:49:24 +0100 Subject: [PATCH] remove unreachable code --- src/Symfony/Component/Yaml/Parser.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/Symfony/Component/Yaml/Parser.php b/src/Symfony/Component/Yaml/Parser.php index 997de27965..e8f951a1ec 100644 --- a/src/Symfony/Component/Yaml/Parser.php +++ b/src/Symfony/Component/Yaml/Parser.php @@ -1181,27 +1181,6 @@ class Parser } return $value; - - for ($i = 1; isset($yaml[$i]) && $quotation !== $yaml[$i]; ++$i) { - } - - // quoted single line string - if (isset($yaml[$i]) && $quotation === $yaml[$i]) { - return $yaml; - } - - $lines = [$yaml]; - - while ($this->moveToNextLine()) { - for ($i = 1; isset($this->currentLine[$i]) && $quotation !== $this->currentLine[$i]; ++$i) { - } - - $lines[] = trim($this->currentLine); - - if (isset($this->currentLine[$i]) && $quotation === $this->currentLine[$i]) { - break; - } - } } private function lexInlineMapping(string $yaml): string