[aur-dev] [PATCH 1/2] aur.inc: remove unused code

Dan McGee dan at archlinux.org
Mon Dec 29 21:46:05 EST 2008


Signed-off-by: Dan McGee <dan at archlinux.org>
---

If this is a bogus patch and we do need this code around, let me know. A
quick git annotate shows that it is from 2004/2005 and is just old garbage.

-Dan

 web/lib/aur.inc |   47 -----------------------------------------------
 1 files changed, 0 insertions(+), 47 deletions(-)

diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index 22bd4e7..1fc9842 100644
--- a/web/lib/aur.inc
+++ b/web/lib/aur.inc
@@ -20,53 +20,6 @@ include_once("acctfuncs.inc");
 # is using...
 
 
-# return an array of info for each Trusted user
-#
-function getTrustedUsers() {
-	$tus = array();
-	$dbh = db_connect();
-	$q = "SELECT * FROM Users WHERE AccountTypeID = 2 ";
-	$q.= "ORDER BY Username ASC";
-	$result = db_query($q, $dbh);
-	if ($result) {
-		while ($row = mysql_fetch_assoc($result)) {
-			$tus[$row["ID"]] = $row;
-		}
-	}
-	return $tus;
-}
-
-
-# return an array of info for each Developer
-#
-function getDevelopers() {
-	$devs = array();
-	$dbh = db_connect();
-	$q = "SELECT * FROM Users WHERE AccountTypeID = 3 ";
-	$q.= "ORDER BY Username ASC";
-	$result = db_query($q, $dbh);
-	if ($result) {
-		while ($row = mysql_fetch_assoc($result)) {
-			$devs[$row["ID"]] = $row;
-		}
-	}
-	return $devs;
-}
-
-# return an array of info for each user
-function getUsers() {
-	$users = array();
-	$dbh = db_connect();
-	$q = "SELECT * FROM Users ORDER BY Username ASC";
-	$result = db_query($q, $dbh);
-	if ($result) {
-		while ($row = mysql_fetch_assoc($result)) {
-			$users[$row["ID"]] = $row;
-		}
-	}
-	return $users;
-}
-
 # see if the visitor is already logged in
 #
 function check_sid() {
-- 
1.6.1



More information about the aur-dev mailing list