From 2ae89d7d8d1170a43a0626021e79fc583466f2e1 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 25 Mar 2022 21:46:28 +0100 Subject: [PATCH] Remove deprecated methods --- config/view.php | 2 +- src/Hyde.php | 26 -------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/config/view.php b/config/view.php index 1e7310c4..d41f7495 100644 --- a/config/view.php +++ b/config/view.php @@ -2,7 +2,7 @@ return [ 'paths' => [ - Hyde\Framework\Hyde::viewPath(), + resource_path('views'), ], 'compiled' => env( diff --git a/src/Hyde.php b/src/Hyde.php index 34c3353d..8a0c3249 100644 --- a/src/Hyde.php +++ b/src/Hyde.php @@ -21,32 +21,6 @@ public static function version(): string return InstalledVersions::getVersion('hyde/hyde') ?: 'unreleased'; } - /** - * Is Torchlight enabled? - * - * @deprecated v0.4.1 will be moved into the Features class - * - * Torchlight is an API for Syntax Highlighting. By default, it is enabled - * automatically when an API token is set in the .env file. - * @return bool - */ - public static function hasTorchlight(): bool - { - return (config('torchlight.token') !== null); - } - - /** - * Return the path where the Blade views are located - * - * @deprecated v0.4.1 as it is not needed - * - * @return string - */ - public static function viewPath() - { - return resource_path('views') ; - } - /** * Get the subdirectory documentation files are stored in * @return string