diff options
-rw-r--r-- | lib/public/AppFramework/Http/FileDisplayResponse.php | 9 | ||||
-rw-r--r-- | tests/Core/Controller/GuestAvatarControllerTest.php | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/lib/public/AppFramework/Http/FileDisplayResponse.php b/lib/public/AppFramework/Http/FileDisplayResponse.php index f5b9a1cf2b9..ab23701f893 100644 --- a/lib/public/AppFramework/Http/FileDisplayResponse.php +++ b/lib/public/AppFramework/Http/FileDisplayResponse.php @@ -66,13 +66,4 @@ class FileDisplayResponse extends Response implements ICallbackResponse { $output->setOutput($this->file->getContent()); } } - - /** - * Returns the response file. - * - * @return \OCP\Files\File|\OCP\Files\SimpleFS\ISimpleFile - */ - public function getFile() { - return $this->file; - } } diff --git a/tests/Core/Controller/GuestAvatarControllerTest.php b/tests/Core/Controller/GuestAvatarControllerTest.php index a7c67c684cc..f720478e499 100644 --- a/tests/Core/Controller/GuestAvatarControllerTest.php +++ b/tests/Core/Controller/GuestAvatarControllerTest.php @@ -85,6 +85,5 @@ class GuestAvatarControllerTest extends \Test\TestCase { $this->assertGreaterThanOrEqual(201, $response->getStatus()); $this->assertInstanceOf(FileDisplayResponse::class, $response); - $this->assertSame($this->file, $response->getFile()); } } |