From 0cbe3aa8e60c8b66a1140d3f6a3e9453341e4d1e Mon Sep 17 00:00:00 2001
From: Hypolite Petovan <mrpetovan@gmail.com>
Date: Mon, 9 Jul 2018 22:40:10 -0400
Subject: [PATCH] Remove global $db variable

---
 src/Worker/DBClean.php | 2 --
 1 file changed, 2 deletions(-)

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
-- 
2.39.5