mirror of
https://github.com/friendica/friendica
synced 2025-04-29 11:44:24 +02: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
|
@ -30,11 +30,7 @@ class OnePoll
|
|||
|
||||
Logger::log('Start for contact ' . $contact_id);
|
||||
|
||||
$manual_id = 0;
|
||||
$generation = 0;
|
||||
$hub_update = false;
|
||||
$force = false;
|
||||
$restart = false;
|
||||
|
||||
if ($command == "force") {
|
||||
$force = true;
|
||||
|
@ -45,7 +41,6 @@ class OnePoll
|
|||
return;
|
||||
}
|
||||
|
||||
$d = DateTimeFormat::utcNow();
|
||||
|
||||
$contact = DBA::selectFirst('contact', [], ['id' => $contact_id]);
|
||||
if (!DBA::isResult($contact)) {
|
||||
|
@ -580,7 +575,7 @@ class OnePoll
|
|||
$datarray['allow_cid'] = '<' . $contact['id'] . '>';
|
||||
}
|
||||
|
||||
$stored_item = Item::insert($datarray);
|
||||
Item::insert($datarray);
|
||||
|
||||
switch ($mailconf['action']) {
|
||||
case 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue