mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI: Removed unused std::vectors.
This commit is contained in:
parent
b89fe446b4
commit
0d6df3c7aa
1 changed files with 0 additions and 6 deletions
|
@ -840,7 +840,6 @@ void CLI::categorize ()
|
|||
changes = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
else if (terminated)
|
||||
{
|
||||
a.tag ("ORIGINAL");
|
||||
|
@ -909,14 +908,10 @@ bool CLI::exactMatch (
|
|||
const std::string& value) const
|
||||
{
|
||||
// Extract a list of entities for category.
|
||||
std::vector <std::string> options;
|
||||
auto c = _entities.equal_range (category);
|
||||
for (auto e = c.first; e != c.second; ++e)
|
||||
{
|
||||
// Shortcut: if an exact match is found, success.
|
||||
if (value == e->second)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -2273,7 +2268,6 @@ bool CLI::isAttribute (const std::string& raw) const
|
|||
bool CLI::isOperator (const std::string& raw) const
|
||||
{
|
||||
// Walk the list of entities for category.
|
||||
std::vector <std::string> options;
|
||||
auto c = _entities.equal_range ("operator");
|
||||
for (auto e = c.first; e != c.second; ++e)
|
||||
if (raw == e->second)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue