summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-09-19 19:41:31 -0400
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-20 10:58:29 +0200
commit2c7254eb60857c21c9eadfd8360ad9fdceadf9ff (patch)
tree81187cd17f1f0f52fba625cd7612a7250b7d900e
parent2d4dda7cc296d6ad61fa38409d3dc048a6d01fbe (diff)
downloadaurweb-2c7254eb60857c21c9eadfd8360ad9fdceadf9ff.tar.xz
Remove unused pkgnotify_from_sid function
Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/lib/pkgfuncs.inc.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 9e3b686..3589dbb 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -283,29 +283,6 @@ function pkgvotes_from_sid($sid="", $dbh=NULL) {
return $pkgs;
}
-# array of package ids that you're being notified for
-# *yoink*
-#
-function pkgnotify_from_sid($sid="", $dbh=NULL) {
- $pkgs = array();
- if (!$sid) {return $pkgs;}
- if(!$dbh) {
- $dbh = db_connect();
- }
- $q = "SELECT PkgID ";
- $q.= "FROM CommentNotify, Users, Sessions ";
- $q.= "WHERE Users.ID = Sessions.UsersID ";
- $q.= "AND Users.ID = CommentNotify.UserID ";
- $q.= "AND Sessions.SessionID = " . $dbh->quote($sid);
- $result = $dbh->query($q);
- if ($result) {
- while ($row = $result->fetch(PDO::FETCH_NUM)) {
- $pkgs[$row[0]] = 1;
- }
- }
- return $pkgs;
-}
-
# get name of package based on pkgid
#
function pkgname_from_id($pkgids, $dbh=NULL) {