summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-07-16 10:33:01 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-07-16 10:33:01 +0200
commitf8343e5a689a113a56e3014261e9fd66af563726 (patch)
tree903e4c23c8fbaec76aa99f611a172a06cb8ba56c /web/lib
parent2cff0d3455c60d5f49193ea844eb39fbcfa5e1ec (diff)
downloadaur-f8343e5a689a113a56e3014261e9fd66af563726.tar.gz
aur-f8343e5a689a113a56e3014261e9fd66af563726.tar.xz
Remove unused function pkg_details_by_name()
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
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 29da97b2..8c2a67de 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