From 4783f13a193532b0fcfff3419b1eac4046facacf Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 23 Apr 2004 22:37:39 +0000 Subject: [PATCH] Remove now-unused dcContributors function. --- includes/Metadata.php | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/includes/Metadata.php b/includes/Metadata.php index d3366cff10..49a2275c34 100644 --- a/includes/Metadata.php +++ b/includes/Metadata.php @@ -228,38 +228,6 @@ function wfCreativeCommonsRdf($article) { } } -/* private */ function dcContributors($article) { - - $title = $article->mTitle; - - $contribs = array(); - - $res = wfQuery("SELECT DISTINCT old_user,old_user_text" . - " FROM old " . - " WHERE old_namespace = " . $title->getNamespace() . - " AND old_title = '" . $title->getDBkey() . "'" . - " AND old_user != 0 " . - " AND old_user != " . $article->getUser(), DB_READ); - - while ( $line = wfFetchObject( $res ) ) { - $contribs[$line->old_user_text] = $line->old_user; - } - - # Count anonymous users - - $res = wfQuery("SELECT COUNT(*) AS cnt " . - " FROM old " . - " WHERE old_namespace = " . $title->getNamespace() . - " AND old_title = '" . $title->getDBkey() . "'" . - " AND old_user = 0 ", DB_READ); - - while ( $line = wfFetchObject( $res ) ) { - $contribs[$line->cnt] = 0; - } - - return $contribs; -} - /* Takes an arg, for future enhancement with different rights for different pages. */ -- 2.20.1