From 4dab6f32835a1cb06d2384397c4f66eebff44a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Cobucci?= Date: Sun, 26 Feb 2023 21:59:52 +0100 Subject: [PATCH] Remove unused JSON parser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luís Cobucci --- .../ParseJsonConfigurationFile.php | 48 ------------------- 1 file changed, 48 deletions(-) delete mode 100644 src/Configuration/ParseJsonConfigurationFile.php diff --git a/src/Configuration/ParseJsonConfigurationFile.php b/src/Configuration/ParseJsonConfigurationFile.php deleted file mode 100644 index 371cb164..00000000 --- a/src/Configuration/ParseJsonConfigurationFile.php +++ /dev/null @@ -1,48 +0,0 @@ - Type\optional(Type\vec(Type\string()))], - ), - ); - } catch (Json\Exception\DecodeException $exception) { - throw new RuntimeException( - 'It was not possible to parse the configuration', - previous: $exception, - ); - } - - $baseline = $configuration['baseline'] ?? []; - - return Configuration::fromFile( - Baseline::fromList(...$baseline), - $filename, - ); - } -}