From 20ce9e89c1324dc7d2485fa1507f3ea0a3543ad1 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 18 Dec 2019 20:35:47 +0100 Subject: [PATCH] Remove not needed temp manager Signed-off-by: Roeland Jago Douma --- lib/private/IntegrityCheck/Checker.php | 14 -------------- lib/private/Server.php | 1 - tests/lib/IntegrityCheck/CheckerTest.php | 3 +-- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/lib/private/IntegrityCheck/Checker.php b/lib/private/IntegrityCheck/Checker.php index 57a80e6f4b..1ba3040679 100644 --- a/lib/private/IntegrityCheck/Checker.php +++ b/lib/private/IntegrityCheck/Checker.php @@ -71,28 +71,15 @@ class Checker { private $cache; /** @var IAppManager */ private $appManager; - /** @var ITempManager */ - private $tempManager; /** @var IMimeTypeDetector */ private $mimeTypeDetector; - /** - * @param EnvironmentHelper $environmentHelper - * @param FileAccessHelper $fileAccessHelper - * @param AppLocator $appLocator - * @param IConfig $config - * @param ICacheFactory $cacheFactory - * @param IAppManager $appManager - * @param ITempManager $tempManager - * @param IMimeTypeDetector $mimeTypeDetector - */ public function __construct(EnvironmentHelper $environmentHelper, FileAccessHelper $fileAccessHelper, AppLocator $appLocator, IConfig $config = null, ICacheFactory $cacheFactory, IAppManager $appManager = null, - ITempManager $tempManager, IMimeTypeDetector $mimeTypeDetector) { $this->environmentHelper = $environmentHelper; $this->fileAccessHelper = $fileAccessHelper; @@ -100,7 +87,6 @@ class Checker { $this->config = $config; $this->cache = $cacheFactory->createDistributed(self::CACHE_KEY); $this->appManager = $appManager; - $this->tempManager = $tempManager; $this->mimeTypeDetector = $mimeTypeDetector; } diff --git a/lib/private/Server.php b/lib/private/Server.php index 6b030a77a8..ad89f68127 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -899,7 +899,6 @@ class Server extends ServerContainer implements IServerContainer { $config, $c->getMemCacheFactory(), $appManager, - $c->getTempManager(), $c->getMimeTypeDetector() ); }); diff --git a/tests/lib/IntegrityCheck/CheckerTest.php b/tests/lib/IntegrityCheck/CheckerTest.php index 586a42ff54..07b705a049 100644 --- a/tests/lib/IntegrityCheck/CheckerTest.php +++ b/tests/lib/IntegrityCheck/CheckerTest.php @@ -77,12 +77,11 @@ class CheckerTest extends TestCase { $this->config, $this->cacheFactory, $this->appManager, - \OC::$server->getTempManager(), $this->mimeTypeDetector ); } - + public function testWriteAppSignatureOfNotExistingApp() { $this->expectException(\Exception::class); $this->expectExceptionMessage('Exception message');