Skip to content

Commit

Permalink
Remove unused use statements for App
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Dec 11, 2024
1 parent fff140a commit 5f7482d
Show file tree
Hide file tree
Showing 61 changed files with 36 additions and 115 deletions.
2 changes: 0 additions & 2 deletions advancedcontentfilter/advancedcontentfilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
*
*/

use Friendica\App;
use Friendica\BaseModule;
use Friendica\Content\Text\Markdown;
use Friendica\Core\Hook;
Expand All @@ -42,7 +41,6 @@
use Friendica\Database\DBA;
use Friendica\Database\DBStructure;
use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Model\Post;
use Friendica\Model\Tag;
use Friendica\Model\User;
Expand Down
1 change: 0 additions & 1 deletion birdavatar/birdavatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Fabio <https://kirgroup.com/profile/fabrixxm>
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
Expand Down
1 change: 0 additions & 1 deletion blackout/blackout.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
* THE SOFTWARE.
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
Expand Down
1 change: 0 additions & 1 deletion buglink/buglink.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Mike Macgirvin <[email protected]>
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\DI;

Expand Down
11 changes: 5 additions & 6 deletions calc/calc.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\DI;

Expand All @@ -16,7 +15,7 @@ function calc_install() {

function calc_app_menu(array &$b)
{
$b['app_menu'][] = '<div class="app-title"><a href="calc">Calculator</a></div>';
$b['app_menu'][] = '<div class="app-title"><a href="calc">Calculator</a></div>';
}

/**
Expand Down Expand Up @@ -296,7 +295,7 @@ function calc_content($app) {
<h3>Calculator</h3>
<br /><br />
<table>
<tbody><tr><td>
<tbody><tr><td>
<table bgcolor="#af9999" border="1">
<tbody><tr><td>
<table border="1" cellpadding="2" cellspacing="2">
Expand All @@ -323,7 +322,7 @@ function calc_content($app) {
<td><input name="multiplication" value="&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;" onclick="multiplyNumbers()" type="button"></td>
</tr><tr align="left" valign="middle">
<td><input name="zero" value="&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;" onclick="addDisplay(0)" type="button"></td>
<td><input name="pi" value="&nbsp;Pi&nbsp;&nbsp;" onclick="addDisplay(Math.PI)" type="button"> </td>
<td><input name="pi" value="&nbsp;Pi&nbsp;&nbsp;" onclick="addDisplay(Math.PI)" type="button"> </td>
<td><input name="dot" value="&nbsp;&nbsp;&nbsp;.&nbsp;&nbsp;&nbsp;" onclick='addDisplay(".")' type="button"></td>
<td><input name="division" value="&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;" onclick="divideNumbers()" type="button"></td>
</tr><tr align="left" valign="middle">
Expand All @@ -345,13 +344,13 @@ function calc_content($app) {
</form>
<!--
<TD VALIGN=top>
<TD VALIGN=top>
<B>NOTE:</B> All sine and cosine calculations are
<br>done in radians. Remember to convert first
<br>if using degrees.
</TD>
-->
</td></tr></tbody></table>
Expand Down
2 changes: 0 additions & 2 deletions catavatar/catavatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
* Author: Fabio <https://kirgroup.com/profile/fabrixxm>
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
Expand Down
1 change: 0 additions & 1 deletion cookienotice/cookienotice.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Author: Peter Liebetrau <https://socivitas/profile/peerteer>
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Renderer;
use Friendica\DI;
Expand Down
1 change: 0 additions & 1 deletion diaspora/diaspora.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

require_once 'addon/diaspora/Diaspora_Connection.php';

use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
Expand Down
1 change: 0 additions & 1 deletion discourse/discourse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*
*/

use Friendica\App;
use Friendica\Content\Text\Markdown;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
Expand Down
1 change: 0 additions & 1 deletion dwpost/dwpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* Author: Cat Gray <https://free-haven.org/profile/catness>
*/

use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
Expand Down
1 change: 0 additions & 1 deletion fancybox/fancybox.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Status: Unsupported
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\DI;

Expand Down
3 changes: 1 addition & 2 deletions fromapp/fromapp.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
Expand Down Expand Up @@ -76,6 +75,6 @@ function fromapp_post_hook(&$item)

$apps = explode(',', $app);
$item['app'] = trim($apps[mt_rand(0, count($apps)-1)]);

return;
}
1 change: 0 additions & 1 deletion geocoordinates/geocoordinates.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
Expand Down
1 change: 0 additions & 1 deletion geonames/geonames.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
Expand Down
5 changes: 2 additions & 3 deletions gnot/gnot.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
* Description: Thread email comment notifications on Gmail and anonymise them
* Version: 1.0
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
*
*
*
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
Expand Down Expand Up @@ -38,7 +37,7 @@ function gnot_settings_post($post) {
}

/**
* Called from the Addon Setting form.
* Called from the Addon Setting form.
* Add our own settings info to the page.
*/
function gnot_settings(array &$data)
Expand Down
1 change: 0 additions & 1 deletion googlemaps/googlemaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;

Expand Down
3 changes: 0 additions & 3 deletions gravatar/gravatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@
* Author: Klaus Weidenbach <http://friendica.dszdw.net/profile/klaus>
*/

use Friendica\App;
use Friendica\BaseModule;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Core\Config\Util\ConfigFileManager;
use Friendica\Util\Strings;

/**
* Installs the addon hook
Expand Down
2 changes: 0 additions & 2 deletions group_text/group_text.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
* Note: Please use Circle Text instead
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;

Expand Down
1 change: 0 additions & 1 deletion highlightjs/highlightjs.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Hypolite Petovan <[email protected]>
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\DI;

Expand Down
1 change: 0 additions & 1 deletion ifttt/ifttt.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Version: 0.1
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
*/
use Friendica\App;
use Friendica\Content\PageInfo;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
Expand Down
1 change: 0 additions & 1 deletion ijpost/ijpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* Author: Cat Gray <https://free-haven.org/profile/catness>
*/

use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
Expand Down
1 change: 0 additions & 1 deletion impressum/impressum.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* License: 3-clause BSD license
*/

use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
Expand Down
1 change: 0 additions & 1 deletion infiniteimprobabilitydrive/infiniteimprobabilitydrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Thomas Willingham <https://kakste.com/profile/beardyunixer>
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\DI;

Expand Down
1 change: 0 additions & 1 deletion irc/irc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Author: Tobias Diekershoff <https://f.diekershoff.de/u/tobias>
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Renderer;
use Friendica\DI;
Expand Down
1 change: 0 additions & 1 deletion krynn/krynn.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*"My body was my sacrifice... for my magic. This damage is permanent." - Raistlin Majere
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
Expand Down
1 change: 0 additions & 1 deletion ldapauth/ldapauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
* The configuration options for this module are described in the config/ldapauth.config.php file
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
Expand Down
1 change: 0 additions & 1 deletion libertree/libertree.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Tony Baldwin <https://free-haven.org/u/tony>
*/

use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
Expand Down
1 change: 0 additions & 1 deletion libravatar/libravatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Klaus Weidenbach <http://friendica.dszdw.net/profile/klaus>
*/

use Friendica\App;
use Friendica\Core\Addon;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
Expand Down
1 change: 0 additions & 1 deletion markdown/markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Version: 0.1
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
*/
use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Content\Text\Markdown;
use Friendica\Core\Renderer;
Expand Down
1 change: 0 additions & 1 deletion mathjax/mathjax.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* License: 3-clause BSD license
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Renderer;
use Friendica\DI;
Expand Down
1 change: 0 additions & 1 deletion morechoice/morechoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* Status: Deprecated
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\DI;

Expand Down
1 change: 0 additions & 1 deletion morepokes/morepokes.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\DI;

Expand Down
1 change: 0 additions & 1 deletion newmemberwidget/newmemberwidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Tobias Diekershoff <https://f.diekershoff.de/profile/tobias>
***/

use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
Expand Down
1 change: 0 additions & 1 deletion nitter/nitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Renderer;
use Friendica\DI;
Expand Down
1 change: 0 additions & 1 deletion nominatim/nominatim.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
*/

use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
Expand Down
2 changes: 0 additions & 2 deletions notifyall/notifyall.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
*/

use Friendica\Addon\notifyall\NotifyAllEmail;
use Friendica\App;
use Friendica\Database\DBA;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;

Expand Down
Loading

0 comments on commit 5f7482d

Please sign in to comment.