@@ -28,7 +28,6 @@ |
||
| 28 | 28 | use OCP\AppFramework\Http\DataResponse; |
| 29 | 29 | use OCP\AppFramework\OCS\OCSBadRequestException; |
| 30 | 30 | use OCP\AppFramework\OCS\OCSNotFoundException; |
| 31 | -use OCP\Files\File; |
|
| 32 | 31 | use OCP\Files\Folder; |
| 33 | 32 | use OCP\Files\IRootFolder; |
| 34 | 33 | use OCP\Files\NotFoundException; |
@@ -31,7 +31,6 @@ |
||
| 31 | 31 | use OCP\Files\NotFoundException; |
| 32 | 32 | use OCP\IConfig; |
| 33 | 33 | use OCP\IL10N; |
| 34 | -use OCP\IPreview; |
|
| 35 | 34 | use OCP\IURLGenerator; |
| 36 | 35 | use OC\Files\AppData\Factory; |
| 37 | 36 | |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | |
| 26 | 26 | use OCP\Files\IAppData; |
| 27 | 27 | use OCP\Files\NotFoundException; |
| 28 | -use OCP\Files\SimpleFS\ISimpleFile; |
|
| 29 | 28 | use OCP\Files\SimpleFS\ISimpleFolder; |
| 30 | 29 | use OCP\Http\Client\IClientService; |
| 31 | 30 | use OCP\IConfig; |
@@ -28,7 +28,6 @@ |
||
| 28 | 28 | use OCP\AppFramework\Utility\ITimeFactory; |
| 29 | 29 | use OCP\IDBConnection; |
| 30 | 30 | use OCP\Security\ISecureRandom; |
| 31 | -use PhpParser\Node\Scalar\MagicConst\Dir; |
|
| 32 | 31 | |
| 33 | 32 | class DirectMapper extends Mapper { |
| 34 | 33 | |
@@ -32,7 +32,6 @@ |
||
| 32 | 32 | use OCP\IGroupManager; |
| 33 | 33 | use OCP\IURLGenerator; |
| 34 | 34 | use OCP\IUserManager; |
| 35 | -use OCP\Security\ISecureRandom; |
|
| 36 | 35 | use OCP\Share\IManager; |
| 37 | 36 | use OCP\IL10N; |
| 38 | 37 | use OCP\Util; |
@@ -11,10 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace OCA\Richdocuments\Controller; |
| 13 | 13 | |
| 14 | -use OCA\Richdocuments\Db\WopiMapper; |
|
| 15 | 14 | use OCA\Richdocuments\Service\FederationService; |
| 16 | 15 | use OCA\Richdocuments\TokenManager; |
| 17 | -use OCA\Richdocuments\WOPI\Parser; |
|
| 18 | 16 | use \OCP\AppFramework\Controller; |
| 19 | 17 | use OCP\AppFramework\Http; |
| 20 | 18 | use OCP\AppFramework\Http\JSONResponse; |
@@ -26,11 +26,8 @@ |
||
| 26 | 26 | use \OCP\AppFramework\OCSController; |
| 27 | 27 | use OCA\Richdocuments\Db\WopiMapper; |
| 28 | 28 | use OCP\AppFramework\Http\DataResponse; |
| 29 | -use OCP\AppFramework\OCS\OCSNotFoundException; |
|
| 30 | -use OCP\Files\NotFoundException; |
|
| 31 | 29 | use OCP\IConfig; |
| 32 | 30 | use OCP\IRequest; |
| 33 | -use OCP\Share\Exceptions\ShareNotFound; |
|
| 34 | 31 | use OCP\Share\IManager; |
| 35 | 32 | |
| 36 | 33 | class FederationController extends OCSController { |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use OCA\Federation\TrustedServers; |
| 28 | 28 | use OCA\Files_Sharing\External\Storage as SharingExternalStorage; |
| 29 | 29 | use OCA\Richdocuments\TokenManager; |
| 30 | -use OCP\AppFramework\Http\RedirectResponse; |
|
| 31 | 30 | use OCP\AppFramework\QueryException; |
| 32 | 31 | use OCP\Files\File; |
| 33 | 32 | use OCP\Files\InvalidPathException; |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | namespace OCA\Richdocuments\Preview; |
| 23 | 23 | |
| 24 | -use GuzzleHttp\Psr7\LimitStream; |
|
| 25 | 24 | use function GuzzleHttp\Psr7\stream_for; |
| 26 | 25 | use OC\Preview\Provider; |
| 27 | 26 | use OCA\Richdocuments\Capabilities; |