diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-12-20 08:54:54 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-12-20 08:54:54 -0100 |
commit | c6943191f9abe9b88cdee313202a2c56fd315310 (patch) | |
tree | c5052d4fe116209887d3e3827d91ea3903149d96 /lib | |
parent | b21b3bdfa3f0ade0277c58130fa5df8e3fbecf14 (diff) |
unused import
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Command/QueueProcess.php | 7 | ||||
-rw-r--r-- | lib/Controller/ActivityPubController.php | 1 | ||||
-rw-r--r-- | lib/Cron/Queue.php | 6 | ||||
-rw-r--r-- | lib/Db/NotesRequest.php | 3 | ||||
-rw-r--r-- | lib/Model/ActivityPub/ACore.php | 1 | ||||
-rw-r--r-- | lib/Model/ActivityPub/Object/Document.php | 2 | ||||
-rw-r--r-- | lib/Model/ActivityPub/Object/Image.php | 1 | ||||
-rw-r--r-- | lib/Service/ActivityService.php | 2 | ||||
-rw-r--r-- | lib/Service/SignatureService.php | 1 |
9 files changed, 1 insertions, 23 deletions
diff --git a/lib/Command/QueueProcess.php b/lib/Command/QueueProcess.php index 337185bd..e73229ec 100644 --- a/lib/Command/QueueProcess.php +++ b/lib/Command/QueueProcess.php @@ -31,12 +31,9 @@ declare(strict_types=1); namespace OCA\Social\Command; -use daita\MySmallPhpTools\Exceptions\MalformedArrayException; use OC\Core\Command\Base; -use OCA\Social\Exceptions\RedundancyLimitException; use OCA\Social\Exceptions\RequestException; use OCA\Social\Exceptions\SocialAppConfigException; -use OCA\Social\Exceptions\UnknownItemException; use OCA\Social\Service\ActivityService; use OCA\Social\Service\ConfigService; use OCA\Social\Service\MiscService; @@ -95,10 +92,6 @@ class QueueProcess extends Base { /** * @param InputInterface $input * @param OutputInterface $output - * - * @throws RedundancyLimitException - * @throws UnknownItemException - * @throws MalformedArrayException */ protected function execute(InputInterface $input, OutputInterface $output) { diff --git a/lib/Controller/ActivityPubController.php b/lib/Controller/ActivityPubController.php index 8a8dd0ef..9e0a9a84 100644 --- a/lib/Controller/ActivityPubController.php +++ b/lib/Controller/ActivityPubController.php @@ -35,7 +35,6 @@ use Exception; use OC\AppFramework\Http; use OCA\Social\AppInfo\Application; use OCA\Social\Exceptions\SignatureIsGoneException; -use OCA\Social\Exceptions\SocialAppConfigException; use OCA\Social\Exceptions\UnknownItemException; use OCA\Social\Service\CacheActorService; use OCA\Social\Service\FollowService; diff --git a/lib/Cron/Queue.php b/lib/Cron/Queue.php index 6b4736d1..a2315504 100644 --- a/lib/Cron/Queue.php +++ b/lib/Cron/Queue.php @@ -31,13 +31,10 @@ declare(strict_types=1); namespace OCA\Social\Cron; -use daita\MySmallPhpTools\Exceptions\MalformedArrayException; use OC\BackgroundJob\TimedJob; use OCA\Social\AppInfo\Application; -use OCA\Social\Exceptions\RedundancyLimitException; use OCA\Social\Exceptions\RequestException; use OCA\Social\Exceptions\SocialAppConfigException; -use OCA\Social\Exceptions\UnknownItemException; use OCA\Social\Service\ActivityService; use OCA\Social\Service\MiscService; use OCA\Social\Service\QueueService; @@ -73,10 +70,7 @@ class Queue extends TimedJob { /** * @param mixed $argument * - * @throws MalformedArrayException * @throws QueryException - * @throws RedundancyLimitException - * @throws UnknownItemException */ protected function run($argument) { $app = new Application(); diff --git a/lib/Db/NotesRequest.php b/lib/Db/NotesRequest.php index 0c917316..ce85785a 100644 --- a/lib/Db/NotesRequest.php +++ b/lib/Db/NotesRequest.php @@ -33,9 +33,8 @@ namespace OCA\Social\Db; use DateTime; use OCA\Social\Exceptions\NoteNotFoundException; use OCA\Social\Model\ActivityPub\ACore; -use OCA\Social\Model\ActivityPub\Object\Note; use OCA\Social\Model\ActivityPub\Actor\Person; -use OCA\Social\Service\ActivityService; +use OCA\Social\Model\ActivityPub\Object\Note; use OCA\Social\Service\ConfigService; use OCA\Social\Service\MiscService; use OCP\DB\QueryBuilder\IQueryBuilder; diff --git a/lib/Model/ActivityPub/ACore.php b/lib/Model/ActivityPub/ACore.php index 67cdf9a9..0a177126 100644 --- a/lib/Model/ActivityPub/ACore.php +++ b/lib/Model/ActivityPub/ACore.php @@ -38,7 +38,6 @@ use OCA\Social\Exceptions\InvalidOriginException; use OCA\Social\Exceptions\InvalidResourceEntryException; use OCA\Social\Exceptions\UrlCloudException; use OCA\Social\Model\LinkedDataSignature; -use OCA\Social\Service\ActivityPub\ICoreService; use OCA\Social\Model\ActivityPub\Object\Document; diff --git a/lib/Model/ActivityPub/Object/Document.php b/lib/Model/ActivityPub/Object/Document.php index b99a9f51..4797acf7 100644 --- a/lib/Model/ActivityPub/Object/Document.php +++ b/lib/Model/ActivityPub/Object/Document.php @@ -33,7 +33,6 @@ namespace OCA\Social\Model\ActivityPub\Object; use DateTime; use JsonSerializable; -use OCA\Social\Exceptions\InvalidResourceEntryException; use OCA\Social\Exceptions\UrlCloudException; use OCA\Social\Model\ActivityPub\ACore; @@ -198,7 +197,6 @@ class Document extends ACore implements JsonSerializable { * @param array $data * * @throws UrlCloudException - * @throws InvalidResourceEntryException */ public function import(array $data) { parent::import($data); diff --git a/lib/Model/ActivityPub/Object/Image.php b/lib/Model/ActivityPub/Object/Image.php index 6d9399e2..96c5136f 100644 --- a/lib/Model/ActivityPub/Object/Image.php +++ b/lib/Model/ActivityPub/Object/Image.php @@ -64,7 +64,6 @@ class Image extends Document implements JsonSerializable { * @param array $data * * @throws UrlCloudException - * @throws InvalidResourceEntryException */ public function import(array $data) { parent::import($data); diff --git a/lib/Service/ActivityService.php b/lib/Service/ActivityService.php index b9bd615f..30d5e757 100644 --- a/lib/Service/ActivityService.php +++ b/lib/Service/ActivityService.php @@ -39,7 +39,6 @@ use OCA\Social\Db\NotesRequest; use OCA\Social\Exceptions\ActorDoesNotExistException; use OCA\Social\Exceptions\EmptyQueueException; use OCA\Social\Exceptions\InvalidResourceException; -use OCA\Social\Exceptions\LinkedDataSignatureMissingException; use OCA\Social\Exceptions\NoHighPriorityRequestException; use OCA\Social\Exceptions\QueueStatusException; use OCA\Social\Exceptions\Request410Exception; @@ -52,7 +51,6 @@ use OCA\Social\Model\ActivityPub\Activity\Delete; use OCA\Social\Model\ActivityPub\Actor\Person; use OCA\Social\Model\ActivityPub\Object\Tombstone; use OCA\Social\Model\InstancePath; -use OCA\Social\Model\LinkedDataSignature; use OCA\Social\Model\RequestQueue; class ActivityService { diff --git a/lib/Service/SignatureService.php b/lib/Service/SignatureService.php index 4f927cff..a1424758 100644 --- a/lib/Service/SignatureService.php +++ b/lib/Service/SignatureService.php @@ -44,7 +44,6 @@ use OCA\Social\Exceptions\SignatureException; use OCA\Social\Exceptions\SignatureIsGoneException; use OCA\Social\Exceptions\SocialAppConfigException; use OCA\Social\Exceptions\UnknownItemException; -use OCA\Social\Exceptions\UrlCloudException; use OCA\Social\Model\ActivityPub\ACore; use OCA\Social\Model\ActivityPub\Actor\Person; use OCA\Social\Model\LinkedDataSignature; |