From 074972868c3828b20db828ca7a8d130f016a574c Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 23 Feb 2023 12:52:30 +0100 Subject: [PATCH] fixup! Apply review suggestions --- lib/Sabre/CollectionPhoto.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/Sabre/CollectionPhoto.php b/lib/Sabre/CollectionPhoto.php index 9c0f7699b9..b280b804f5 100644 --- a/lib/Sabre/CollectionPhoto.php +++ b/lib/Sabre/CollectionPhoto.php @@ -116,18 +116,4 @@ public function setFavoriteState($favoriteState): bool { new \Exception('Favorite state is invalide, should be 0 or 1.'); } } - - public function get() { - $node = $this->getNode(); - - if ($node instanceof File) { - return $node->fopen('r'); - } else { - throw new NotFoundException("Photo is a folder"); - } - } - - public function getFileInfo(): Node { - return $this->getNode(); - } }