summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-04-05 16:02:20 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-04-05 16:02:20 +0200
commit434b04e82601dd79eb95ffee2f57fdba27f71ece (patch)
tree277777cb72b2f07b6c0406d3fccb7be39e9d7825 /web
parentee1048b268e3cc61267007c0bcf60b8c58d3f029 (diff)
downloadaur-434b04e82601dd79eb95ffee2f57fdba27f71ece.tar.gz
aur-434b04e82601dd79eb95ffee2f57fdba27f71ece.tar.xz
pkgfuncs.inc.php: Remove several unused functions
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgfuncs.inc.php54
1 files changed, 0 insertions, 54 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 17402048..f5eb11d6 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -649,32 +649,6 @@ function pkg_create($base_id, $pkgname, $license, $pkgver, $pkgdesc, $pkgurl) {
}
/**
- * Update all database information for a specific package
- *
- * @param string $pkgname Name of the updated package
- * @param string $license License of the updated package
- * @param string $pkgver Version of the updated package
- * @param string $pkgdesc Description of updated package
- * @param string $pkgurl The upstream URL for the package
- * @param int $uid The user ID of the updater
- * @param int $pkgid The package ID of the updated package
- *
- * @return void
- */
-function pkg_update($pkgname, $license, $pkgver, $pkgdesc, $pkgurl, $pkgid) {
- $dbh = DB::connect();
- $q = sprintf("UPDATE Packages SET Name = %s, Version = %s, " .
- "License = %s, Description = %s, URL = %s WHERE ID = %d",
- $dbh->quote($pkgname),
- $dbh->quote($pkgver),
- $dbh->quote($license),
- $dbh->quote($pkgdesc),
- $dbh->quote($pkgurl),
- $pkgid);
- $dbh->exec($q);
-}
-
-/**
* Add a dependency for a specific package to the database
*
* @param int $pkgid The package ID to add the dependency for
@@ -708,31 +682,3 @@ function pkg_add_src($pkgid, $pkgsrc) {
$dbh->exec($q);
}
-
-/**
- * Remove package dependencies from a specific package
- *
- * @param string $pkgid The package ID to remove package dependencies from
- *
- * @return void
- */
-function pkg_remove_deps($pkgid) {
- $dbh = DB::connect();
- $q = "DELETE FROM PackageDepends WHERE PackageID = " . $pkgid;
-
- $dbh->exec($q);
-}
-
-/**
- * Remove package sources from a specific package
- *
- * @param string $pkgid The package ID to remove package sources from
- *
- * @return void
- */
-function pkg_remove_sources($pkgid) {
- $dbh = DB::connect();
- $q = "DELETE FROM PackageSources WHERE PackageID = " . $pkgid;
-
- $dbh->exec($q);
-}