summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2011-04-04 15:35:23 -0400
committerPaul Arthur <flowerysong00@yahoo.com>2011-04-04 15:35:23 -0400
commit32db091453bc1da18c8d8087e80ec8855fbcde03 (patch)
tree7d93905fb61d451c3f790b77bed25b9d88fd1b83
parentaa791a400b8e578ecac441f9690c3b95dfbd17e1 (diff)
downloadampache-32db091453bc1da18c8d8087e80ec8855fbcde03.tar.gz
ampache-32db091453bc1da18c8d8087e80ec8855fbcde03.tar.bz2
ampache-32db091453bc1da18c8d8087e80ec8855fbcde03.zip
Remove obsolete function
-rw-r--r--lib/class/random.class.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/class/random.class.php b/lib/class/random.class.php
index 75d728b2..cdc4e2a6 100644
--- a/lib/class/random.class.php
+++ b/lib/class/random.class.php
@@ -173,32 +173,6 @@ class Random implements media {
} // get_default
/**
- * get_genre
- * This looks at the last object played by the current user and
- * then picks a song of the same genre at random...
- */
- public static function get_genre($limit) {
-
- $results = array();
-
- // Get the last genre played by us
- $data = $GLOBALS['user']->get_recently_played('1','genre');
- if ($data['0']) {
- $where_sql = " WHERE `genre`='" . $data['0'] . "' ";
- }
-
- $sql = "SELECT `id` FROM `song` $where_sql ORDER BY RAND() LIMIT $limit";
- $db_results = Dba::read($sql);
-
- while ($row = Dba::fetch_assoc($db_results)) {
- $results[] = $row['id'];
- }
-
- return $results;
-
- } // get_genre
-
- /**
* get_album
* This looks at the last album played by the current user and
* picks something else in the same album