diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-12 20:55:18 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-12 20:55:18 +0000 |
commit | 00f122cd7b1071f55eb61072f994069dfd22af7d (patch) | |
tree | 9a1c75647c36e1987618bb154068557987153ca0 /includes/session.inc | |
parent | e096263f3ca6048f646c26f6cf1d6635229a4467 (diff) | |
download | brdo-00f122cd7b1071f55eb61072f994069dfd22af7d.tar.gz brdo-00f122cd7b1071f55eb61072f994069dfd22af7d.tar.bz2 |
- Patch #655212 by chx: remove unused and broken drupal_session_count().
Diffstat (limited to 'includes/session.inc')
-rw-r--r-- | includes/session.inc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/includes/session.inc b/includes/session.inc index 51e40ac75..beab9601b 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -310,30 +310,6 @@ function drupal_session_regenerate() { } /** - * Counts how many users are active on the site. - * - * Counts how many users have sessions which have been active since the - * specified time. Can count either anonymous sessions or - * authenticated sessions. - * - * @param int $timestamp. - * A Unix timestamp. Users who have been active since this time will be - * counted. The default is 0, which counts all existing sessions. - * @param boolean $anonymous - * TRUE counts only anonymous users. - * FALSE counts only authenticated users. - * @return int - * The number of users with sessions. - */ -function drupal_session_count($timestamp = 0, $anonymous = TRUE) { - $query = db_select('sessions'); - $query->addExpression('COUNT(sid)', 'count'); - $query->condition('timestamp', $timestamp, '>='); - $query->condition('uid', 0, $anonymous ? '=' : '>'); - return $query->execute()->fetchField(); -} - -/** * Session handler assigned by session_set_save_handler(). * * Cleanup a specific session. |