diff --git a/ChangeLog b/ChangeLog index 283d6d6f0..e36af0413 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,7 @@ Features + Removed version 1.x column name support. + Removed version 1.x sort column support. + Old-style color names including underscores are no longer supported. + + Removed priority counts from the 'projects' report. Bugs + #1511 sync init crashes if client certification file is empty or invalid diff --git a/NEWS b/NEWS index dbb4d52b3..1bd5ef4f4 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,7 @@ Removed features in 2.4.0 - Version 1.x column names no longer supported. - Version 1.x sort columns no longer supported. - Old-style color names including underscores are no longer supported. + - Removed priority counts from the 'projects' commands. Known Issues diff --git a/src/commands/CmdProjects.cpp b/src/commands/CmdProjects.cpp index c199d6357..0b18b70eb 100644 --- a/src/commands/CmdProjects.cpp +++ b/src/commands/CmdProjects.cpp @@ -77,10 +77,6 @@ int CmdProjects::execute (std::string& output) // Scan all the tasks for their project name, building a map using project // names as keys. std::map unique; - std::map high; - std::map medium; - std::map low; - std::map none; bool no_project = false; std::string project; std::string priority; @@ -94,16 +90,10 @@ int CmdProjects::execute (std::string& output) } project = task->get ("project"); - priority = task->get ("priority"); - unique[project] += 1; + if (project == "") no_project = true; - - if (priority == "H") high[project] += 1; - else if (priority == "M") medium[project] += 1; - else if (priority == "L") low[project] += 1; - else none[project] += 1; } if (unique.size ()) @@ -113,10 +103,6 @@ int CmdProjects::execute (std::string& output) view.width (context.getWidth ()); view.add (Column::factory ("string", STRING_COLUMN_LABEL_PROJECT)); view.add (Column::factory ("string.right", STRING_COLUMN_LABEL_TASKS)); - view.add (Column::factory ("string.right", STRING_CMD_PROJECTS_PRI_N)); - view.add (Column::factory ("string.right", STRING_CMD_PROJECTS_PRI_L)); - view.add (Column::factory ("string.right", STRING_CMD_PROJECTS_PRI_M)); - view.add (Column::factory ("string.right", STRING_CMD_PROJECTS_PRI_H)); std::vector processed; std::map ::iterator project; @@ -139,10 +125,6 @@ int CmdProjects::execute (std::string& output) ? STRING_CMD_PROJECTS_NONE : indentProject (project->first, " ", '.'))); view.set (row, 1, project->second); - view.set (row, 2, none[project->first]); - view.set (row, 3, low[project->first]); - view.set (row, 4, medium[project->first]); - view.set (row, 5, high[project->first]); processed.push_back (project->first); }