From 88fa3701bea8e0e3e6131531a374186beeb65ccc Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 10 Jan 2007 08:40:07 +0000 Subject: [PATCH] revert api clutter from r18995 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 | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index a47d69c5ef..20fa71ad8f 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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; -- 2.20.1