]> git.mxchange.org Git - friendica.git/commitdiff
Remove unused code in include/
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 7 Jan 2019 17:33:25 +0000 (12:33 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 15:53:33 +0000 (10:53 -0500)
- Remove unused variables

include/api.php
include/conversation.php
include/items.php

index 329b49f609c474554701e87c9a359bd67aafb79a..d1d54f144c7f23cc864e7c1212b6b0b1f12940da 100644 (file)
@@ -3735,7 +3735,6 @@ function api_direct_messages_new($type)
        }
 
        $replyto = '';
-       $sub     = '';
        if (!empty($_REQUEST['replyto'])) {
                $r = q(
                        'SELECT `parent-uri`, `title` FROM `mail` WHERE `uid`=%d AND `id`=%d',
index 9dd7d53c86bd993926c62e0fa7df81d97cb8b819..5125b3d1e8d7851050bd003f2b515a72193070e6 100644 (file)
@@ -940,7 +940,6 @@ function item_photo_menu($item) {
  */
 function builtin_activity_puller($item, &$conv_responses) {
        foreach ($conv_responses as $mode => $v) {
-               $url = '';
                $sparkle = '';
 
                switch ($mode) {
index 2f98122b7b9bfc16fe4bece78b18f4caac7094da..52d37d621c37835afcb3d6381aff91102aadabfc 100644 (file)
@@ -302,8 +302,6 @@ function subscribe_to_hub($url, array $importer, array $contact, $hubmode = 'sub
                return;
        }
 
-       $a = BaseObject::getApp();
-
        $user = DBA::selectFirst('user', ['nickname'], ['uid' => $importer['uid']]);
 
        // No user, no nickname, we quit