From a0d5509f191ef79094b3841b8927ab249528efda Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 5 Aug 2015 10:54:14 +0200 Subject: [PATCH] DbQuery: Drop attribute $maxCount It's not used anywhere and completely useless the way it's implemented. --- library/Icinga/Data/Db/DbQuery.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/library/Icinga/Data/Db/DbQuery.php b/library/Icinga/Data/Db/DbQuery.php index 8bf57867e..b3f53cb1b 100644 --- a/library/Icinga/Data/Db/DbQuery.php +++ b/library/Icinga/Data/Db/DbQuery.php @@ -47,16 +47,6 @@ class DbQuery extends SimpleQuery */ protected $useSubqueryCount = false; - /** - * Set the count maximum - * - * If the count maximum is set, count queries will not count more than that many rows. You should set this - * property only for really heavy queries. - * - * @var int - */ - protected $maxCount; - /** * Count query result * @@ -339,9 +329,6 @@ class DbQuery extends SimpleQuery $columns = array('cnt' => 'COUNT(*)'); return $this->db->select()->from($count, $columns); } - if ($this->maxCount !== null) { - return $this->db->select()->from($count->limit($this->maxCount)); - } $count->columns(array('cnt' => 'COUNT(*)')); return $count;