X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupPreferences.php;h=66fc6d374ef280cf172855fd45edbb98fc13d80d;hb=d1756504ef32f801c144a15d1115c20c33bd2a33;hp=b24d72ddda2516c507d6332ef2b1088bb288fabf;hpb=15f6eff90c305d405fe4331c8a8dc8caa842e5b3;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupPreferences.php b/maintenance/cleanupPreferences.php index b24d72ddda..66fc6d374e 100644 --- a/maintenance/cleanupPreferences.php +++ b/maintenance/cleanupPreferences.php @@ -60,7 +60,6 @@ class CleanupPreferences extends Maintenance { global $wgHiddenPrefs, $wgDefaultUserOptions; $dbw = $this->getDB( DB_MASTER ); - $didWork = false; $hidden = $this->hasOption( 'hidden' ); $unknown = $this->hasOption( 'unknown' ); $bogus = $this->hasOption( 'bogus' ); @@ -100,9 +99,6 @@ class CleanupPreferences extends Maintenance { } } - /** - * - */ private function deleteByWhere( $dbw, $startMessage, $where ) { $this->output( $startMessage . "...\n" ); $total = 0; @@ -118,7 +114,6 @@ class CleanupPreferences extends Maintenance { $numRows = $res->numRows(); $total += $numRows; if ( $res->numRows() <= 0 ) { - // All done! $this->output( "DONE! (handled $total entries)\n" ); break; }