From a8149d798a04ba3308eec15a3fcff9cac4df734e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Wed, 27 Sep 2023 19:57:27 -0700 Subject: [PATCH] Remove unused and invalid method in ProjectModel --- app/Model/ProjectModel.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/Model/ProjectModel.php b/app/Model/ProjectModel.php index 82aae2220..d993fb964 100644 --- a/app/Model/ProjectModel.php +++ b/app/Model/ProjectModel.php @@ -593,21 +593,6 @@ class ProjectModel extends Base ->save(array('is_public' => 0, 'token' => '')); } - /** - * Return the task count for a project - * - * @access public - * @param integer $project_id Project id - * @return integer - */ - public function taskCount($project_id) - { - return $this->db->table(self::TABLE) - ->eq('id', $project_id)->exists() - ->join(ColumnModel::TABLE, 'id', 'project_id') - ->count(); - } - /** * Change usage of global tags *