diff --git a/module/pivot/model.php b/module/pivot/model.php index 8d625c9a35..15b5b63965 100644 --- a/module/pivot/model.php +++ b/module/pivot/model.php @@ -661,24 +661,6 @@ class pivotModel extends model return $bugs; } - /** - * Get user todo stat in this year. - * - * @param array $accounts - * @param int $year - * @access public - * @return object - */ - public function getUserYearTodos($accounts, $year) - { - return $this->dao->select("count(*) as count, sum(if((`status` != 'done'), 1, 0)) AS `undone`, sum(if((`status` = 'done'), 1, 0)) AS `done`")->from(TABLE_TODO) - ->where('LEFT(date, 4)')->eq($year) - ->andWhere('deleted')->eq('0') - ->andWhere('vision')->eq($this->config->vision) - ->beginIF($accounts)->andWhere('account')->in($accounts)->fi() - ->fetch(); - } - /** * Get user effort stat in this error. *