From f8343e5a689a113a56e3014261e9fd66af563726 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 16 Jul 2014 10:33:01 +0200 Subject: Remove unused function pkg_details_by_name() Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'web/lib') diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index 29da97b..8c2a67d 100644 --- a/web/lib/pkgfuncs.inc.php +++ b/web/lib/pkgfuncs.inc.php @@ -728,30 +728,6 @@ function sanitize_ids($ids) { return $new_ids; } -/** - * Get all package information in the database for a specific package - * - * @param string $pkgname The name of the package to get details for - * - * @return array All package details for a specific package - */ -function pkg_details_by_name($pkgname) { - $dbh = DB::connect(); - $q = "SELECT Packages.*, PackageBases.Name AS BaseName, "; - $q.= "PackageBases.CategoryID, PackageBases.NumVotes, "; - $q.= "PackageBases.OutOfDateTS, PackageBases.SubmittedTS, "; - $q.= "PackageBases.ModifiedTS, PackageBases.SubmitterUID, "; - $q.= "PackageBases.MaintainerUID FROM Packages "; - $q.= "INNER JOIN PackageBases "; - $q.= "ON PackageBases.ID = Packages.PackageBaseID WHERE "; - $q.= "Packages.Name = " . $dbh->quote($pkgname); - $result = $dbh->query($q); - if ($result) { - $row = $result->fetch(PDO::FETCH_ASSOC); - } - return $row; -} - /** * Add package information to the database for a specific package * -- cgit v1.2.3-70-g09d2