From 434b04e82601dd79eb95ffee2f57fdba27f71ece Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 5 Apr 2014 16:02:20 +0200 Subject: pkgfuncs.inc.php: Remove several unused functions Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 54 ------------------------------------------------ 1 file changed, 54 deletions(-) diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index 1740204..f5eb11d 100644 --- a/web/lib/pkgfuncs.inc.php +++ b/web/lib/pkgfuncs.inc.php @@ -648,32 +648,6 @@ function pkg_create($base_id, $pkgname, $license, $pkgver, $pkgdesc, $pkgurl) { return $dbh->lastInsertId(); } -/** - * 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 * @@ -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); -} -- cgit v1.2.3-54-g00ecf