mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-04 10:37:19 +02:00
A3
- Removed obsolete ::extract_filter.
This commit is contained in:
parent
f5a13e5e42
commit
3f8a723903
2 changed files with 0 additions and 28 deletions
27
src/A3.cpp
27
src/A3.cpp
|
@ -534,33 +534,6 @@ const std::vector <std::string> A3::operator_list ()
|
|||
return all;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
const A3 A3::extract_filter () const
|
||||
{
|
||||
A3 filter;
|
||||
bool before_command = true;
|
||||
std::vector <Arg>::const_iterator arg;
|
||||
for (arg = this->begin (); arg != this->end (); ++arg)
|
||||
{
|
||||
if (arg->_category == Arg::cat_command)
|
||||
before_command = false;
|
||||
|
||||
if (arg->_category == Arg::cat_program ||
|
||||
arg->_category == Arg::cat_rc ||
|
||||
arg->_category == Arg::cat_override ||
|
||||
arg->_category == Arg::cat_command ||
|
||||
arg->_category == Arg::cat_terminator)
|
||||
;
|
||||
|
||||
else if (before_command || _read_only_command)
|
||||
filter.push_back (*arg);
|
||||
}
|
||||
|
||||
filter = postfix (infix (sequence (expand (tokenize (filter)))));
|
||||
context.a3._limit = filter._limit;
|
||||
return filter;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
const A3 A3::extract_modifications () const
|
||||
{
|
||||
|
|
1
src/A3.h
1
src/A3.h
|
@ -60,7 +60,6 @@ public:
|
|||
bool find_command (std::string&) const;
|
||||
const std::string find_limit () const;
|
||||
|
||||
const A3 extract_filter () const;
|
||||
const A3 extract_modifications () const;
|
||||
|
||||
const A3 tokenize (const A3&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue