mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 19:17:19 +02:00
Task: Use one-step attribute erase
This commit is contained in:
parent
136f849aa8
commit
2aa3163451
1 changed files with 1 additions and 5 deletions
|
@ -320,12 +320,8 @@ void Task::set (const std::string& name, int value)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Task::remove (const std::string& name)
|
||||
{
|
||||
auto it = this->find (name);
|
||||
if (it != this->end ())
|
||||
{
|
||||
this->erase (it);
|
||||
if (this->erase (name))
|
||||
recalc_urgency = true;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue