summaryrefslogtreecommitdiff
path: root/app/Model/Category.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-01 20:55:21 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-01 20:55:21 -0400
commit747b9434d3ef82f55d96185c5afa6d155642ba15 (patch)
treec36610d5856f11e399e0d1f4f3442b8ede8ff687 /app/Model/Category.php
parent471e46e70294684efc6d7edfc814d5b9ca04738b (diff)
Remove method Category::getBoardCategories()
Diffstat (limited to 'app/Model/Category.php')
-rw-r--r--app/Model/Category.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/app/Model/Category.php b/app/Model/Category.php
index dcc0f88e..f50c0f48 100644
--- a/app/Model/Category.php
+++ b/app/Model/Category.php
@@ -74,38 +74,6 @@ class Category extends Base
}
/**
- * Prepare categories to be displayed on the board
- *
- * @access public
- * @param integer $project_id
- * @return array
- */
- public function getBoardCategories($project_id)
- {
- $descriptions = array();
-
- $listing = array(
- -1 => t('All categories'),
- 0 => t('No category'),
- );
-
- $categories = $this->db->table(self::TABLE)
- ->eq('project_id', $project_id)
- ->asc('name')
- ->findAll();
-
- foreach ($categories as $category) {
- $listing[$category['id']] = $category['name'];
- $descriptions[$category['id']] = $category['description'];
- }
-
- return array(
- $listing,
- $descriptions,
- );
- }
-
- /**
* Return the list of all categories
*
* @access public