mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:10:11 +00:00
Remove unused code
- Remove commented code - Remove unused/immediately overwritten variables - Remove extraneous parameters - Remove unreachable code - Remove duplicate array keys
This commit is contained in:
parent
0c4f8277e6
commit
4a95ca280d
42 changed files with 43 additions and 218 deletions
|
@ -885,8 +885,6 @@ class Contact extends BaseObject
|
|||
*/
|
||||
public static function getDetailsByAddr($addr, $uid = -1)
|
||||
{
|
||||
static $cache = [];
|
||||
|
||||
if ($addr == '') {
|
||||
return [];
|
||||
}
|
||||
|
@ -942,14 +940,9 @@ class Contact extends BaseObject
|
|||
*/
|
||||
public static function photoMenu(array $contact, $uid = 0)
|
||||
{
|
||||
// @todo Unused, to be removed
|
||||
$a = \get_app();
|
||||
|
||||
$contact_url = '';
|
||||
$pm_url = '';
|
||||
$status_link = '';
|
||||
$photos_link = '';
|
||||
$posts_link = '';
|
||||
$contact_drop_link = '';
|
||||
$poke_link = '';
|
||||
|
||||
|
@ -1219,7 +1212,6 @@ class Contact extends BaseObject
|
|||
$contact_id = self::getIdForURL($data["alias"], $uid, true, $default, true);
|
||||
}
|
||||
|
||||
$url = $data["url"];
|
||||
if (!$contact_id) {
|
||||
$fields = [
|
||||
'uid' => $uid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue