Remove deprecated ChangesList::newFromUser function
authoraude <aude.wiki@gmail.com>
Thu, 7 Nov 2013 01:14:28 +0000 (02:14 +0100)
committeraude <aude.wiki@gmail.com>
Thu, 7 Nov 2013 01:14:28 +0000 (02:14 +0100)
newFromUser() is unused in core and all extensions in gerrit,
except BlueSpiceExtensions RSSStandards. (there is a
patch for that I1455052)

Change-Id: I4559146cc0e9973e6e4f6297138cbfd8e387e8b7

includes/changes/ChangesList.php

index bf800c4..95b77b5 100644 (file)
@@ -49,19 +49,6 @@ class ChangesList extends ContextSource {
                $this->preCacheMessages();
        }
 
-       /**
-        * Fetch an appropriate changes list class for the main context
-        * This first argument used to be an User object.
-        *
-        * @deprecated in 1.18; use newFromContext() instead
-        * @param string|User $unused Unused
-        * @return ChangesList|EnhancedChangesList|OldChangesList derivative
-        */
-       public static function newFromUser( $unused ) {
-               wfDeprecated( __METHOD__, '1.18' );
-               return self::newFromContext( RequestContext::getMain() );
-       }
-
        /**
         * Fetch an appropriate changes list class for the specified context
         * Some users might want to use an enhanced list format, for instance