From 11a7f6c3e19cfdc58be2859e91d0e147106d4e23 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 3 Oct 2018 19:17:40 +0000 Subject: [PATCH] Unused "use" removed --- src/Protocol/ActivityPub.php | 18 ------------------ src/Protocol/ActivityPub/Processor.php | 10 ---------- src/Protocol/ActivityPub/Receiver.php | 11 ----------- src/Protocol/ActivityPub/Transmitter.php | 3 +-- 4 files changed, 1 insertion(+), 41 deletions(-) diff --git a/src/Protocol/ActivityPub.php b/src/Protocol/ActivityPub.php index 7c0a2b706c..9f3d42fbd7 100644 --- a/src/Protocol/ActivityPub.php +++ b/src/Protocol/ActivityPub.php @@ -4,26 +4,9 @@ */ namespace Friendica\Protocol; -use Friendica\Database\DBA; -use Friendica\Core\System; -use Friendica\BaseObject; use Friendica\Util\Network; -use Friendica\Util\HTTPSignature; use Friendica\Core\Protocol; -use Friendica\Model\Conversation; -use Friendica\Model\Contact; use Friendica\Model\APContact; -use Friendica\Model\Item; -use Friendica\Model\Profile; -use Friendica\Model\Term; -use Friendica\Model\User; -use Friendica\Util\DateTimeFormat; -use Friendica\Util\Crypto; -use Friendica\Content\Text\BBCode; -use Friendica\Content\Text\HTML; -use Friendica\Util\JsonLD; -use Friendica\Util\LDSignature; -use Friendica\Core\Config; /** * @brief ActivityPub Protocol class @@ -43,7 +26,6 @@ use Friendica\Core\Config; * * To-do: * - Polling the outboxes for missing content? - * - "about" needs HTML2BBCode parser */ class ActivityPub { diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 8162605613..2e93e1bc18 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -5,24 +5,14 @@ namespace Friendica\Protocol\ActivityPub; use Friendica\Database\DBA; -use Friendica\Core\System; -use Friendica\BaseObject; -use Friendica\Util\Network; -use Friendica\Util\HTTPSignature; use Friendica\Core\Protocol; use Friendica\Model\Conversation; use Friendica\Model\Contact; use Friendica\Model\APContact; use Friendica\Model\Item; -use Friendica\Model\Profile; -use Friendica\Model\Term; use Friendica\Model\User; -use Friendica\Util\DateTimeFormat; -use Friendica\Util\Crypto; -use Friendica\Content\Text\BBCode; use Friendica\Content\Text\HTML; use Friendica\Util\JsonLD; -use Friendica\Util\LDSignature; use Friendica\Core\Config; use Friendica\Protocol\ActivityPub; diff --git a/src/Protocol/ActivityPub/Receiver.php b/src/Protocol/ActivityPub/Receiver.php index b84dc6cee9..a3be19ce44 100644 --- a/src/Protocol/ActivityPub/Receiver.php +++ b/src/Protocol/ActivityPub/Receiver.php @@ -5,25 +5,14 @@ namespace Friendica\Protocol\ActivityPub; use Friendica\Database\DBA; -use Friendica\Core\System; -use Friendica\BaseObject; -use Friendica\Util\Network; use Friendica\Util\HTTPSignature; use Friendica\Core\Protocol; -use Friendica\Model\Conversation; use Friendica\Model\Contact; use Friendica\Model\APContact; use Friendica\Model\Item; -use Friendica\Model\Profile; -use Friendica\Model\Term; use Friendica\Model\User; -use Friendica\Util\DateTimeFormat; -use Friendica\Util\Crypto; -use Friendica\Content\Text\BBCode; -use Friendica\Content\Text\HTML; use Friendica\Util\JsonLD; use Friendica\Util\LDSignature; -use Friendica\Core\Config; use Friendica\Protocol\ActivityPub; /** diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index b92148e1ff..f06122e6e2 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -6,7 +6,6 @@ namespace Friendica\Protocol\ActivityPub; use Friendica\Database\DBA; use Friendica\Core\System; -use Friendica\BaseObject; use Friendica\Util\HTTPSignature; use Friendica\Core\Protocol; use Friendica\Model\Conversation; @@ -19,10 +18,10 @@ use Friendica\Util\DateTimeFormat; use Friendica\Content\Text\BBCode; use Friendica\Util\JsonLD; use Friendica\Util\LDSignature; -use Friendica\Protocol\ActivityPub; use Friendica\Model\Profile; use Friendica\Core\Config; use Friendica\Object\Image; +use Friendica\Protocol\ActivityPub; /** * @brief ActivityPub Transmitter Protocol class -- 2.39.5