From 802cfb0525b59a152539d613b7af59f092eddfa4 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Wed, 28 Sep 2016 17:10:16 -0400 Subject: [PATCH] Remove dead code --- cli/Valet/PhpFpm.php | 17 ----------------- cli/stubs/valet.ini | 3 --- tests/PhpFpmTest.php | 5 ----- tests/files/ini.conf | 5 ----- 4 files changed, 30 deletions(-) delete mode 100644 cli/stubs/valet.ini delete mode 100644 tests/files/ini.conf diff --git a/cli/Valet/PhpFpm.php b/cli/Valet/PhpFpm.php index 06392e4..213886f 100644 --- a/cli/Valet/PhpFpm.php +++ b/cli/Valet/PhpFpm.php @@ -104,21 +104,4 @@ function fpmConfigPath() return $confLookup[$this->brew->linkedPhp()]; } - - /** - * Get the path to Valet's PHP ini file for the current PHP version. - * - * @return string - */ - function fpmIniPath() - { - $versionLookup = [ - 'php71' => '/usr/local/etc/php/7.1/conf.d/valet.ini', - 'php70' => '/usr/local/etc/php/7.0/conf.d/valet.ini', - 'php56' => '/usr/local/etc/php/5.6/conf.d/valet.ini', - 'php55' => '/usr/local/etc/php/5.5/conf.d/valet.ini', - ]; - - return $versionLookup[$this->brew->linkedPhp()]; - } } diff --git a/cli/stubs/valet.ini b/cli/stubs/valet.ini deleted file mode 100644 index 90e678a..0000000 --- a/cli/stubs/valet.ini +++ /dev/null @@ -1,3 +0,0 @@ -; Disable the default Content-Type header to defer MIME type detection -; for static files to Caddy -default_mimetype = "" diff --git a/tests/PhpFpmTest.php b/tests/PhpFpmTest.php index 206b73c..7206eee 100644 --- a/tests/PhpFpmTest.php +++ b/tests/PhpFpmTest.php @@ -40,9 +40,4 @@ function fpmConfigPath() { return __DIR__.'/output/fpm.conf'; } - - function fpmIniPath() - { - return __DIR__.'/output/ini.conf'; - } } diff --git a/tests/files/ini.conf b/tests/files/ini.conf deleted file mode 100644 index 595bc58..0000000 --- a/tests/files/ini.conf +++ /dev/null @@ -1,5 +0,0 @@ -Test contents - -default_mimetype = "text/html" - -more contents