summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-24 12:43:23 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-23 09:03:47 +0200
commit3a8e537946363dcbcfe07ead5e8979aef5fafcd9 (patch)
tree7dd655dd1444ff11b99b5bbf2804852f80c308d4
parent357d342467b9200f190376a2bd224fa7b803b45a (diff)
downloadnextcloud-server-3a8e537946363dcbcfe07ead5e8979aef5fafcd9.tar.gz
nextcloud-server-3a8e537946363dcbcfe07ead5e8979aef5fafcd9.zip
Remove unused UserFolder
-rw-r--r--apps/dav/lib/Comments/EntityCollection.php15
-rw-r--r--apps/dav/lib/Comments/EntityTypeCollection.php5
2 files changed, 5 insertions, 15 deletions
diff --git a/apps/dav/lib/Comments/EntityCollection.php b/apps/dav/lib/Comments/EntityCollection.php
index a55a18c00c0..8fa13da6162 100644
--- a/apps/dav/lib/Comments/EntityCollection.php
+++ b/apps/dav/lib/Comments/EntityCollection.php
@@ -22,11 +22,12 @@
namespace OCA\DAV\Comments;
use OCP\Comments\ICommentsManager;
-use OCP\Files\Folder;
+use OCP\Comments\NotFoundException;
use OCP\ILogger;
use OCP\IUserManager;
use OCP\IUserSession;
use Sabre\DAV\Exception\NotFound;
+use Sabre\DAV\IProperties;
use Sabre\DAV\PropPatch;
/**
@@ -37,12 +38,9 @@ use Sabre\DAV\PropPatch;
*
* @package OCA\DAV\Comments
*/
-class EntityCollection extends RootCollection implements \Sabre\DAV\IProperties {
+class EntityCollection extends RootCollection implements IProperties {
const PROPERTY_NAME_READ_MARKER = '{http://owncloud.org/ns}readMarker';
- /** @var Folder */
- protected $fileRoot;
-
/** @var string */
protected $id;
@@ -53,7 +51,6 @@ class EntityCollection extends RootCollection implements \Sabre\DAV\IProperties
* @param string $id
* @param string $name
* @param ICommentsManager $commentsManager
- * @param Folder $fileRoot
* @param IUserManager $userManager
* @param IUserSession $userSession
* @param ILogger $logger
@@ -62,7 +59,6 @@ class EntityCollection extends RootCollection implements \Sabre\DAV\IProperties
$id,
$name,
ICommentsManager $commentsManager,
- Folder $fileRoot,
IUserManager $userManager,
IUserSession $userSession,
ILogger $logger
@@ -76,7 +72,6 @@ class EntityCollection extends RootCollection implements \Sabre\DAV\IProperties
$this->id = $id;
$this->name = $name;
$this->commentsManager = $commentsManager;
- $this->fileRoot = $fileRoot;
$this->logger = $logger;
$this->userManager = $userManager;
$this->userSession = $userSession;
@@ -111,7 +106,7 @@ class EntityCollection extends RootCollection implements \Sabre\DAV\IProperties
$this->userSession,
$this->logger
);
- } catch (\OCP\Comments\NotFoundException $e) {
+ } catch (NotFoundException $e) {
throw new NotFound();
}
}
@@ -159,7 +154,7 @@ class EntityCollection extends RootCollection implements \Sabre\DAV\IProperties
try {
$this->commentsManager->get($name);
return true;
- } catch (\OCP\Comments\NotFoundException $e) {
+ } catch (NotFoundException $e) {
return false;
}
}
diff --git a/apps/dav/lib/Comments/EntityTypeCollection.php b/apps/dav/lib/Comments/EntityTypeCollection.php
index 6bc42484207..0466982e4f2 100644
--- a/apps/dav/lib/Comments/EntityTypeCollection.php
+++ b/apps/dav/lib/Comments/EntityTypeCollection.php
@@ -22,7 +22,6 @@
namespace OCA\DAV\Comments;
use OCP\Comments\ICommentsManager;
-use OCP\Files\Folder;
use OCP\ILogger;
use OCP\IUserManager;
use OCP\IUserSession;
@@ -41,8 +40,6 @@ use Sabre\DAV\Exception\NotFound;
* @package OCA\DAV\Comments
*/
class EntityTypeCollection extends RootCollection {
- /** @var Folder */
- protected $fileRoot;
/** @var ILogger */
protected $logger;
@@ -93,7 +90,6 @@ class EntityTypeCollection extends RootCollection {
$name,
$this->name,
$this->commentsManager,
- $this->fileRoot,
$this->userManager,
$this->userSession,
$this->logger
@@ -121,5 +117,4 @@ class EntityTypeCollection extends RootCollection {
return !empty($nodes);
}
-
}