* Remove @static from the last few places it's left in core. Please don't use this...
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 14 Jun 2011 01:56:55 +0000 (01:56 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 14 Jun 2011 01:56:55 +0000 (01:56 +0000)
* Enforce protected on SpecialAllPages::getNamespaceKeyAndText(), it's not @private like the comment implies
* Drop User::getMaxID(), nothing uses it

includes/User.php
includes/specials/SpecialAllpages.php
tests/parser/parserTest.inc
tests/phpunit/includes/parser/NewParserTest.php

index f4bf1eb..81c7728 100644 (file)
@@ -2863,22 +2863,6 @@ class User {
                return $title->getTalkPage();
        }
 
-       /**
-        * Get the maximum valid user ID.
-        * @return Integer: User ID
-        * @static
-        */
-       function getMaxID() {
-               static $res; // cache
-
-               if ( isset( $res ) ) {
-                       return $res;
-               } else {
-                       $dbr = wfGetDB( DB_SLAVE );
-                       return $res = $dbr->selectField( 'user', 'max(user_id)', false, __METHOD__ );
-               }
-       }
-
        /**
         * Determine whether the user is a newbie. Newbies are either
         * anonymous IPs, or the most recently created accounts.
index ec049ac..85a7c7c 100644 (file)
@@ -468,10 +468,8 @@ class SpecialAllpages extends IncludableSpecialPage {
         * @param $ns Integer: the namespace of the article
         * @param $text String: the name of the article
         * @return array( int namespace, string dbkey, string pagename ) or NULL on error
-        * @static (sort of)
-        * @access private
         */
-       function getNamespaceKeyAndText($ns, $text) {
+       protected function getNamespaceKeyAndText($ns, $text) {
                if ( $text == '' )
                        return array( $ns, '', '' ); # shortcut for common case
 
index 3eae817..6e940ae 100644 (file)
@@ -1205,7 +1205,6 @@ class ParserTest {
         *
         * @param $text String: the text to tidy
         * @return String
-        * @static
         */
        private function tidy( $text ) {
                global $wgUseTidy;
index 2ac38e4..70e8d77 100644 (file)
@@ -668,7 +668,6 @@ class NewParserTest extends MediaWikiTestCase {
         *
         * @param $text String: the text to tidy
         * @return String
-        * @static
         */
        protected function tidy( $text ) {
                global $wgUseTidy;