summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc.php24
1 files changed, 0 insertions, 24 deletions
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
@@ -729,30 +729,6 @@ function sanitize_ids($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
*
* @param int $base_id ID of the package base