From: nupplaPhil Date: Sat, 18 Jan 2020 16:02:59 +0000 (+0100) Subject: Remove unused `use` statements & remove PConfig class X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=800694e9b36bc261a671a80b7ca787f27564a7ac;p=friendica.git Remove unused `use` statements & remove PConfig class --- diff --git a/boot.php b/boot.php index cb3ff7f85c..c863cda723 100644 --- a/boot.php +++ b/boot.php @@ -17,9 +17,7 @@ * easily as email does today. */ -use Friendica\App; use Friendica\Core\Config; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\Core\System; use Friendica\Database\DBA; diff --git a/include/api.php b/include/api.php index d5b52e89cd..8220e7bb16 100644 --- a/include/api.php +++ b/include/api.php @@ -15,7 +15,6 @@ use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\Core\Session; use Friendica\Core\System; diff --git a/include/conversation.php b/include/conversation.php index e617a1db25..5c1b140f4c 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -12,7 +12,6 @@ use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\Core\Renderer; use Friendica\Core\Session; diff --git a/mod/community.php b/mod/community.php index 6c7037f54b..8ed0c14dca 100644 --- a/mod/community.php +++ b/mod/community.php @@ -11,7 +11,6 @@ use Friendica\Content\Widget\TrendingTags; use Friendica\Core\ACL; use Friendica\Core\Config; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\Core\Session; use Friendica\Database\DBA; diff --git a/mod/network.php b/mod/network.php index 28d849e7a1..d4e371c152 100644 --- a/mod/network.php +++ b/mod/network.php @@ -16,7 +16,6 @@ use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\Core\Renderer; use Friendica\Core\Session; diff --git a/mod/ostatus_subscribe.php b/mod/ostatus_subscribe.php index 0ab39e0c89..f6d826e85a 100644 --- a/mod/ostatus_subscribe.php +++ b/mod/ostatus_subscribe.php @@ -5,7 +5,6 @@ use Friendica\App; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\DI; use Friendica\Model\Contact; diff --git a/mod/ping.php b/mod/ping.php index 8530c339e4..c25d7d62e5 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -10,7 +10,6 @@ use Friendica\Core\Cache\Cache; use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Database\DBA; use Friendica\DI; use Friendica\Model\Contact; diff --git a/mod/profiles.php b/mod/profiles.php index 9c394b33bc..f333e302f0 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -11,7 +11,6 @@ use Friendica\Content\Nav; use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\Core\Worker; use Friendica\Database\DBA; diff --git a/mod/profperm.php b/mod/profperm.php index 0377a5f1b1..a79358c819 100644 --- a/mod/profperm.php +++ b/mod/profperm.php @@ -5,7 +5,6 @@ use Friendica\App; use Friendica\Core\Config; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\Content\Text\HTML; use Friendica\Database\DBA; diff --git a/mod/salmon.php b/mod/salmon.php index 5aa57a892a..c7b25a6655 100644 --- a/mod/salmon.php +++ b/mod/salmon.php @@ -5,7 +5,6 @@ use Friendica\App; use Friendica\Core\Logger; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\Database\DBA; use Friendica\DI; diff --git a/mod/settings.php b/mod/settings.php index 2713b35df8..8213fda7c9 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -12,7 +12,6 @@ use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\Core\Session; use Friendica\Core\Theme; diff --git a/mod/update_display.php b/mod/update_display.php index bfd8cdab88..569c76ab31 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -6,7 +6,6 @@ use Friendica\App; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\DI; require_once "mod/display.php"; diff --git a/mod/update_network.php b/mod/update_network.php index 3a49227680..2ae9ccb787 100644 --- a/mod/update_network.php +++ b/mod/update_network.php @@ -6,7 +6,6 @@ use Friendica\App; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\DI; require_once "mod/network.php"; diff --git a/mod/update_notes.php b/mod/update_notes.php index 1769fac769..989af976a2 100644 --- a/mod/update_notes.php +++ b/mod/update_notes.php @@ -7,7 +7,6 @@ use Friendica\App; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\DI; require_once("mod/notes.php"); diff --git a/mod/update_profile.php b/mod/update_profile.php index 20f02a2978..38802866d9 100644 --- a/mod/update_profile.php +++ b/mod/update_profile.php @@ -7,7 +7,6 @@ use Friendica\App; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\DI; use Friendica\Module\Profile; diff --git a/src/Content/Feature.php b/src/Content/Feature.php index 6b39ec4c96..995f33292b 100644 --- a/src/Content/Feature.php +++ b/src/Content/Feature.php @@ -8,7 +8,6 @@ namespace Friendica\Content; use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\DI; class Feature diff --git a/src/Content/Smilies.php b/src/Content/Smilies.php index c5943fc89d..cafc6f3147 100644 --- a/src/Content/Smilies.php +++ b/src/Content/Smilies.php @@ -16,7 +16,6 @@ namespace Friendica\Content; use Friendica\Core\Config; use Friendica\Core\Hook; -use Friendica\Core\PConfig; use Friendica\DI; use Friendica\Util\Strings; diff --git a/src/Content/Widget.php b/src/Content/Widget.php index ebf61177d5..74955be020 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -7,7 +7,6 @@ namespace Friendica\Content; use Friendica\Core\Addon; use Friendica\Core\Config; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\Core\Renderer; use Friendica\Core\Session; diff --git a/src/Content/Widget/ContactBlock.php b/src/Content/Widget/ContactBlock.php index e4bf8e7eaf..bd4d10fd39 100644 --- a/src/Content/Widget/ContactBlock.php +++ b/src/Content/Widget/ContactBlock.php @@ -9,7 +9,6 @@ namespace Friendica\Content\Widget; use Friendica\Content\Text\HTML; use Friendica\Core\Hook; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\Core\Renderer; use Friendica\Database\DBA; diff --git a/src/Core/PConfig.php b/src/Core/PConfig.php deleted file mode 100644 index bb3334c4c9..0000000000 --- a/src/Core/PConfig.php +++ /dev/null @@ -1,22 +0,0 @@ -get() functions return boolean false for keys that are unset, - * and this could lead to subtle bugs. - */ -class PConfig -{ -} diff --git a/src/Model/Event.php b/src/Model/Event.php index 85ac2e3eb7..48544b06de 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -9,7 +9,6 @@ use Friendica\Content\Text\BBCode; use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\Core\System; use Friendica\Database\DBA; diff --git a/src/Model/FileTag.php b/src/Model/FileTag.php index f52bda0adb..ffcea7e281 100644 --- a/src/Model/FileTag.php +++ b/src/Model/FileTag.php @@ -6,7 +6,6 @@ namespace Friendica\Model; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Database\DBA; use Friendica\DI; diff --git a/src/Model/Item.php b/src/Model/Item.php index 8ed746634e..94fe567f66 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -11,9 +11,7 @@ use Friendica\Content\Text\HTML; use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; -use Friendica\Core\Lock; use Friendica\Core\Logger; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\Core\Renderer; use Friendica\Core\Session; diff --git a/src/Model/ItemContent.php b/src/Model/ItemContent.php index ab72484174..672631b7e8 100644 --- a/src/Model/ItemContent.php +++ b/src/Model/ItemContent.php @@ -7,7 +7,6 @@ namespace Friendica\Model; use Friendica\Content\Text; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\DI; diff --git a/src/Model/Profile.php b/src/Model/Profile.php index d3298bbfb1..53699d7837 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -15,7 +15,6 @@ use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\Core\Renderer; use Friendica\Core\Session; diff --git a/src/Model/User.php b/src/Model/User.php index a6acbc6799..f19ebc03c5 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -13,7 +13,6 @@ use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; -use Friendica\Core\PConfig; use Friendica\Core\Protocol; use Friendica\Core\System; use Friendica\Core\Worker; diff --git a/src/Module/Filer/SaveTag.php b/src/Module/Filer/SaveTag.php index 1c3c3af88f..0b6a41ae22 100644 --- a/src/Module/Filer/SaveTag.php +++ b/src/Module/Filer/SaveTag.php @@ -4,7 +4,6 @@ namespace Friendica\Module\Filer; use Friendica\BaseModule; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\DI; use Friendica\Model; diff --git a/src/Module/Group.php b/src/Module/Group.php index 7796d482f4..6542cc74a8 100644 --- a/src/Module/Group.php +++ b/src/Module/Group.php @@ -8,7 +8,6 @@ namespace Friendica\Module; use Friendica\BaseModule; use Friendica\Core\Config; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\Core\System; use Friendica\Database\DBA; diff --git a/src/Module/Invite.php b/src/Module/Invite.php index c84795abb0..b06efc5a2a 100644 --- a/src/Module/Invite.php +++ b/src/Module/Invite.php @@ -4,7 +4,6 @@ namespace Friendica\Module; use Friendica\BaseModule; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\DI; use Friendica\Model; diff --git a/src/Module/Profile.php b/src/Module/Profile.php index 3c2001aa21..3dc35cb2dd 100644 --- a/src/Module/Profile.php +++ b/src/Module/Profile.php @@ -10,19 +10,15 @@ use Friendica\Core\ACL; use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Session; use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\DI; -use Friendica\Model\Contact as ContactModel; -use Friendica\Model\Group; use Friendica\Model\Item; use Friendica\Model\Profile as ProfileModel; use Friendica\Model\User; use Friendica\Module\Security\Login; use Friendica\Protocol\ActivityPub; -use Friendica\Protocol\DFRN; use Friendica\Util\DateTimeFormat; use Friendica\Util\Security; use Friendica\Util\Strings; diff --git a/src/Module/Register.php b/src/Module/Register.php index e791bf393a..9341061156 100644 --- a/src/Module/Register.php +++ b/src/Module/Register.php @@ -2,7 +2,6 @@ namespace Friendica\Module; -use Friendica\App\BaseURL; use Friendica\BaseModule; use Friendica\Content\Text\BBCode; use Friendica\Core\Config; @@ -10,7 +9,6 @@ use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\L10n\L10n as L10nClass; use Friendica\Core\Logger; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\Core\Worker; use Friendica\Database\DBA; diff --git a/src/Module/Security/TwoFactor/Verify.php b/src/Module/Security/TwoFactor/Verify.php index e1a2bc8a16..c00c8abe58 100644 --- a/src/Module/Security/TwoFactor/Verify.php +++ b/src/Module/Security/TwoFactor/Verify.php @@ -3,9 +3,7 @@ namespace Friendica\Module\Security\TwoFactor; use Friendica\BaseModule; -use Friendica\App\Authentication; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\Core\Session; use Friendica\DI; diff --git a/src/Module/Settings/TwoFactor/AppSpecific.php b/src/Module/Settings/TwoFactor/AppSpecific.php index 4c1f0ab465..d87247346e 100644 --- a/src/Module/Settings/TwoFactor/AppSpecific.php +++ b/src/Module/Settings/TwoFactor/AppSpecific.php @@ -1,11 +1,8 @@ Variables which overwriting custom settings */ -use Friendica\Core\PConfig; use Friendica\DI; use Friendica\Util\Strings; diff --git a/view/theme/frio/style.php b/view/theme/frio/style.php index 9a929317fc..363f7cd44d 100644 --- a/view/theme/frio/style.php +++ b/view/theme/frio/style.php @@ -4,7 +4,6 @@ */ use Friendica\Core\Config; -use Friendica\Core\PConfig; use Friendica\DI; use Friendica\Util\Strings; diff --git a/view/theme/quattro/config.php b/view/theme/quattro/config.php index ce9354481f..eb6c5d0aa3 100644 --- a/view/theme/quattro/config.php +++ b/view/theme/quattro/config.php @@ -6,9 +6,7 @@ use Friendica\App; use Friendica\Core\Config; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; -use Friendica\Core\System; use Friendica\DI; function theme_content(App $a) { diff --git a/view/theme/quattro/style.php b/view/theme/quattro/style.php index 1c0209fdf8..f028e11e13 100644 --- a/view/theme/quattro/style.php +++ b/view/theme/quattro/style.php @@ -3,9 +3,7 @@ * @file view/theme/quattro/style.php */ use Friendica\Core\Config; -use Friendica\Core\PConfig; use Friendica\DI; -use Friendica\Model\Profile; $uid = $_REQUEST['puid'] ?? 0; diff --git a/view/theme/vier/config.php b/view/theme/vier/config.php index 106303b921..9bcf4cffc2 100644 --- a/view/theme/vier/config.php +++ b/view/theme/vier/config.php @@ -6,9 +6,7 @@ use Friendica\App; use Friendica\Core\Config; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; -use Friendica\Core\System; use Friendica\DI; require_once __DIR__ . '/theme.php'; diff --git a/view/theme/vier/style.php b/view/theme/vier/style.php index 8f25026279..f8068646ca 100644 --- a/view/theme/vier/style.php +++ b/view/theme/vier/style.php @@ -4,9 +4,7 @@ */ use Friendica\Core\Logger; use Friendica\Core\Config; -use Friendica\Core\PConfig; use Friendica\DI; -use Friendica\Model\Profile; $uid = $_REQUEST['puid'] ?? 0; diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 06e43a129a..e7318902a6 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -14,7 +14,6 @@ use Friendica\Content\ForumManager; use Friendica\Core\Addon; use Friendica\Core\Config; use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\Core\Search; use Friendica\Database\DBA;