From 7f721da08a6eebc82351dad89f49a0277433a1e2 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 29 Sep 2021 22:38:48 +0200 Subject: [PATCH] fix: Remove obsolete code. --- .../src/Service/Wopi/ChillWopi.php | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php index 12bc1b178..ba289630e 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php @@ -95,26 +95,6 @@ final class ChillWopi implements WopiInterface 'UserInfo' => (string) $this->cache->getItem($userCacheKey)->get(), ] ))); - $response = $this->wopi->checkFileInfo($fileId, $accessToken, $request); - $document = $this->documentManager->findByDocumentId($fileId); - - $body = json_decode((string) $response->getBody(), true); - - return $response - ->withBody( - $this - ->psr17 - ->createStream( - (string) json_encode( - $body + - [ - 'Version' => sprintf('v%s', $this->documentManager->getVersion($document)), - // TODO: Add column 'LastModifiedDate' in StoredObject entity - 'LastModifiedTime' => $this->documentManager->getLastModifiedDate($document)->format('Y-m-d\TH:i:s.uP'), - ] - ) - ) - ); } public function deleteFile(string $fileId, ?string $accessToken, RequestInterface $request): ResponseInterface