From 32db091453bc1da18c8d8087e80ec8855fbcde03 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Mon, 4 Apr 2011 15:35:23 -0400 Subject: Remove obsolete function --- lib/class/random.class.php | 26 -------------------------- 1 file changed, 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 @@ -172,32 +172,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 -- cgit