chore: Remove now unused OC_App deprecated methods

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/55404/head
Côme Chilliet 1 week ago
parent c6d148344a
commit 2bc77a3c5a
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 36
      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
*

Loading…
Cancel
Save