From 09fd34eed908203674721af86ce889bfd0a0ef8d Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 19 Nov 2014 12:18:32 +0100 Subject: drop OC_Preferences::getUsers and getApps --- lib/private/legacy/preferences.php | 22 ---------------------- lib/private/preferences.php | 32 -------------------------------- 2 files changed, 54 deletions(-) (limited to 'lib') diff --git a/lib/private/legacy/preferences.php b/lib/private/legacy/preferences.php index 4b68b0e69aa..4f88b60f245 100644 --- a/lib/private/legacy/preferences.php +++ b/lib/private/legacy/preferences.php @@ -28,28 +28,6 @@ OC_Preferences::$object = new \OC\Preferences(OC_DB::getConnection()); */ class OC_Preferences{ public static $object; - /** - * Get all users using the preferences - * @return array an array of user ids - * - * This function returns a list of all users that have at least one entry - * in the preferences table. - */ - public static function getUsers() { - return self::$object->getUsers(); - } - - /** - * Get all apps of a user - * @param string $user user - * @return integer[] with app ids - * - * This function returns a list of all apps of the user that have at least - * one entry in the preferences table. - */ - public static function getApps( $user ) { - return self::$object->getApps( $user ); - } /** * Get the available keys for an app diff --git a/lib/private/preferences.php b/lib/private/preferences.php index cdaa207449d..58f75419497 100644 --- a/lib/private/preferences.php +++ b/lib/private/preferences.php @@ -67,25 +67,6 @@ class Preferences { $this->conn = $conn; } - /** - * Get all users using the preferences - * @return array an array of user ids - * - * This function returns a list of all users that have at least one entry - * in the preferences table. - */ - public function getUsers() { - $query = 'SELECT DISTINCT `userid` FROM `*PREFIX*preferences`'; - $result = $this->conn->executeQuery($query); - - $users = array(); - while ($userid = $result->fetchColumn()) { - $users[] = $userid; - } - - return $users; - } - /** * @param string $user * @return array[] @@ -108,19 +89,6 @@ class Preferences { return $data; } - /** - * Get all apps of an user - * @param string $user user - * @return integer[] with app ids - * - * This function returns a list of all apps of the user that have at least - * one entry in the preferences table. - */ - public function getApps($user) { - $data = $this->getUserValues($user); - return array_keys($data); - } - /** * Get the available keys for an app * @param string $user user -- cgit v1.2.3