From 2873ccba9464db79bc7d6b0e5cd330703b919235 Mon Sep 17 00:00:00 2001 From: addshore Date: Tue, 19 Apr 2016 17:07:50 +0100 Subject: [PATCH] Remove unused wfGetDB() in SiteStats::jobs Change-Id: Id818a71a75e4d4cb8397df5b1ff3dfdd3b155ea7 --- includes/SiteStats.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/SiteStats.php b/includes/SiteStats.php index acd5262b0e..4908419906 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -202,7 +202,6 @@ class SiteStats { */ static function jobs() { if ( !isset( self::$jobs ) ) { - $dbr = wfGetDB( DB_SLAVE ); self::$jobs = array_sum( JobQueueGroup::singleton()->getQueueSizes() ); /** * Zero rows still do single row read for row that doesn't exist, -- 2.20.1