summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-11-30 16:14:00 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-01-06 09:42:14 +0100
commit1e44a15dd1cba215bf10d0f73a7ef2730a77c2b0 (patch)
tree53e05383e3564808815d81ae205ccb071e28b0f0 /lib
parentbd5bcd2d8d32f2f7422ecc47caddda69a92d525e (diff)
downloadnextcloud-server-1e44a15dd1cba215bf10d0f73a7ef2730a77c2b0.tar.gz
nextcloud-server-1e44a15dd1cba215bf10d0f73a7ef2730a77c2b0.zip
No need for the CssManager
* It is a simple wrapper we can always add it later if needed Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php4
-rw-r--r--lib/private/CssManager.php59
2 files changed, 0 insertions, 63 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php
index 3e514ca533d..ac42960f54d 100644
--- a/lib/private/AppFramework/DependencyInjection/DIContainer.php
+++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php
@@ -95,10 +95,6 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer()->getAvatarManager();
});
- $this->registerService('OCP\\ICssManager', function($c) {
- return $this->getServer()->getCssManager();
- });
-
$this->registerService('OCP\\Activity\\IManager', function($c) {
return $this->getServer()->getActivityManager();
});
diff --git a/lib/private/CssManager.php b/lib/private/CssManager.php
deleted file mode 100644
index e0f710b8d7c..00000000000
--- a/lib/private/CssManager.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/**
- * @copyright Copyright (c) 2016, John Molakvoæ (skjnldsv@protonmail.com)
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-namespace OC;
-
-use OCP\Files\IAppData;
-use OCP\Files\NotFoundException;
-use OCP\Files\SimpleFS\ISimpleFile;
-
-/**
- * This class implements methods to access SCSS cached files
- * @since 11.0.0
- */
-
-class CssManager {
-
- /** @var IAppData */
- private $appData;
-
- /**
- * CssManager constructor.
- *
- * @param IAppData $appData
- */
- public function __construct(IAppData $appData) {
- $this->appData = $appData;
- }
-
- /**
- * Get the css file and return ISimpleFile
- *
- * @param string $fileName css filename with extension
- * @param string $appName css app name
- * @return ISimpleFile
- * @throws NotFoundException
- */
- public function getCss($fileName, $appName) {
- $folder = $this->appData->getFolder($appName);
- return $folder->getFile($fileName);
- }
-}