mirror of
https://github.com/friendica/friendica
synced 2025-04-27 16:30:10 +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
|
@ -143,13 +143,11 @@ class Cron
|
|||
$manual_id = 0;
|
||||
$generation = 0;
|
||||
$force = false;
|
||||
$restart = false;
|
||||
|
||||
if ($parameter == 'force') {
|
||||
$force = true;
|
||||
}
|
||||
if ($parameter == 'restart') {
|
||||
$restart = true;
|
||||
$generation = intval($generation);
|
||||
if (!$generation) {
|
||||
exit();
|
||||
|
@ -167,8 +165,6 @@ class Cron
|
|||
|
||||
Addon::reload();
|
||||
|
||||
$d = DateTimeFormat::utcNow();
|
||||
|
||||
// Only poll from those with suitable relationships,
|
||||
// and which have a polling address and ignore Diaspora since
|
||||
// we are unable to match those posts with a Diaspora GUID and prevent duplicates.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue