mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
chore: Remove now unused OC_App deprecated methods
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
c6d148344a
commit
2bc77a3c5a
1 changed files with 0 additions and 36 deletions
|
|
@ -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…
Reference in a new issue