revert api clutter from r18995
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 10 Jan 2007 08:40:07 +0000 (08:40 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 10 Jan 2007 08:40:07 +0000 (08:40 +0000)
Title::getArticle duplicates Article constructor for no reason
Title::isRedirect duplicates Article::isRedirect for no reason
neither function appears to be used

includes/Title.php

index a47d69c..20fa71a 100644 (file)
@@ -511,16 +511,6 @@ class Title {
                return (bool)(Title::$interwikiCache[$k]->iw_trans);
        }
 
-       /**
-        * Determine whether a Title is a redirect
-        *
-        * @return bool
-        */
-       public function isRedirect() {
-               $article = new Article( $this );
-               return $article->isRedirect();
-       }
-
        /**
         * Update the page_touched field for an array of title objects
         * @todo Inefficient unless the IDs are already loaded into the
@@ -1409,15 +1399,6 @@ class Title {
                return $this->mArticleID;
        }
 
-       /**
-        * Return the associated Article object.
-        *
-        * @return Article
-        */
-       public function getArticle() {
-               return new Article( $this );
-       }
-
        function getLatestRevID() {
                if ($this->mLatestID !== false)
                        return $this->mLatestID;