summaryrefslogtreecommitdiffstats
path: root/web/lib/aur.inc
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib/aur.inc')
-rw-r--r--web/lib/aur.inc13
1 files changed, 0 insertions, 13 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index e696d5bb..267b650f 100644
--- a/web/lib/aur.inc
+++ b/web/lib/aur.inc
@@ -444,19 +444,6 @@ function dbug($msg) {
return;
}
-# check to see if the package name exists
-#
-function package_exists($name="") {
- if (!$name) {return 0;}
- $dbh = db_connect();
- $q = "SELECT COUNT(*) FROM Packages ";
- $q.= "WHERE Name = '".mysql_escape_string($name)."'";
- $result = db_query($q, $dbh);
- if (!$result) {return 0;}
- $row = mysql_fetch_row($result);
- return $row[0];
-}
-
# check to see if the user can overwrite an existing package
#
function can_overwrite_pkg($name="", $sid="") {