From 2bc77a3c5aff352cdc19aa683bbb36da2ff20b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 29 Sep 2025 12:36:33 +0200 Subject: [PATCH] chore: Remove now unused OC_App deprecated methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/private/legacy/OC_App.php | 36 ----------------------------------- 1 file changed, 36 deletions(-) diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php index c97c4f3d81e..af2b731baa9 100644 --- a/lib/private/legacy/OC_App.php +++ b/lib/private/legacy/OC_App.php @@ -12,7 +12,6 @@ use OC\AppFramework\Bootstrap\Coordinator; use OC\Installer; use OC\Repair; use OC\Repair\Events\RepairErrorEvent; -use OCP\App\AppPathNotFoundException; use OCP\App\IAppManager; use OCP\Authentication\IAlternativeLogin; use OCP\EventDispatcher\IEventDispatcher; @@ -248,41 +247,6 @@ class OC_App { return Server::get(AppManager::class)->findAppInDirectories($appId, $ignoreCache); } - /** - * Get the directory for the given app. - * If the app is defined in multiple directories, the first one is taken. (false if not found) - * - * @psalm-taint-specialize - * - * @param string $appId - * @param bool $refreshAppPath should be set to true only during install/upgrade - * @return string|false - * @deprecated 11.0.0 use Server::get(IAppManager)->getAppPath() - */ - public static function getAppPath(string $appId, bool $refreshAppPath = false) { - try { - return Server::get(IAppManager::class)->getAppPath($appId, $refreshAppPath); - } catch (AppPathNotFoundException) { - return false; - } - } - - /** - * Get the path for the given app on the access - * If the app is defined in multiple directories, the first one is taken. (false if not found) - * - * @param string $appId - * @return string|false - * @deprecated 18.0.0 use Server::get(IAppManager)->getAppWebPath() - */ - public static function getAppWebPath(string $appId) { - try { - return Server::get(IAppManager::class)->getAppWebPath($appId); - } catch (AppPathNotFoundException) { - return false; - } - } - /** * get app's version based on it's path *