diff --git a/src/Worker/DBClean.php b/src/Worker/DBClean.php index deb23e8dd8..7a0b1f8473 100644 --- a/src/Worker/DBClean.php +++ b/src/Worker/DBClean.php @@ -60,8 +60,6 @@ class DBClean { * 10: Old conversations. */ private static function removeOrphans($stage) { - global $db; - $count = 0; // We split the deletion in many small tasks