Skip to content

Commit 9b84a0e

Browse files
committed
fix: Remove unused static var and method in files application
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent b256928 commit 9b84a0e

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

apps/files/lib/App.php

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,9 @@
77
*/
88
namespace OCA\Files;
99

10-
use OC\NavigationManager;
1110
use OCA\Files\Service\ChunkedUploadConfig;
12-
use OCP\App\IAppManager;
13-
use OCP\EventDispatcher\IEventDispatcher;
14-
use OCP\IConfig;
15-
use OCP\IGroupManager;
16-
use OCP\INavigationManager;
17-
use OCP\IURLGenerator;
18-
use OCP\IUserSession;
19-
use OCP\L10N\IFactory;
20-
use OCP\Server;
21-
use Psr\Log\LoggerInterface;
2211

2312
class App {
24-
private static ?INavigationManager $navigationManager = null;
25-
26-
/**
27-
* Returns the app's navigation manager
28-
*/
29-
public static function getNavigationManager(): INavigationManager {
30-
// TODO: move this into a service in the Application class
31-
if (self::$navigationManager === null) {
32-
self::$navigationManager = new NavigationManager(
33-
Server::get(IAppManager::class),
34-
Server::get(IUrlGenerator::class),
35-
Server::get(IFactory::class),
36-
Server::get(IUserSession::class),
37-
Server::get(IGroupManager::class),
38-
Server::get(IConfig::class),
39-
Server::get(LoggerInterface::class),
40-
Server::get(IEventDispatcher::class),
41-
);
42-
self::$navigationManager->clear(false);
43-
}
44-
return self::$navigationManager;
45-
}
46-
4713
public static function extendJsConfig($settings): void {
4814
$appConfig = json_decode($settings['array']['oc_appconfig'], true);
4915

0 commit comments

Comments
 (0)