From e12b02702bd688e99259f7af348300ba42ffdbf6 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 2 Sep 2010 20:52:01 +0000 Subject: [PATCH] Per r72181, refactor isInCategory into ArticleAssessmentPilot --- includes/Title.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index b991993fce..a512878aba 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3530,24 +3530,6 @@ class Title { return !$this->isExternal() && MWNamespace::isWatchable( $this->getNamespace() ); } - /* - * Returns whether an article is in the specific category - * - * @param $category String: The category name (without Category: Prefix) - * - * @return bool - */ - public function isInCategory( $category ) { - $dbr = wfGetDB( DB_SLAVE ); - return (bool)$dbr->selectRow( 'categorylinks', '*', - array( - 'cl_from' => $this->getArticleId(), - 'cl_to' => $category, - ), - __METHOD__ - ); - } - /** * Get categories to which this Title belongs and return an array of * categories' names. -- 2.20.1