diff --git a/lib/public/AppFramework/Http/FileDisplayResponse.php b/lib/public/AppFramework/Http/FileDisplayResponse.php index f5b9a1cf2b9ee6e032ce696b8b89f28acb24c975..ab23701f89370f92757434c7c8670ac1c1bc1255 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 a7c67c684cca1f053a136f0c82ab00958f678273..f720478e499ecb392e8f633127b95a4e2079d3c9 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()); } }