- Removed obsolete ::extract_filter.
This commit is contained in:
Paul Beckingham 2014-05-25 08:58:24 -04:00
parent f5a13e5e42
commit 3f8a723903
2 changed files with 0 additions and 28 deletions

View file

@ -534,33 +534,6 @@ const std::vector <std::string> A3::operator_list ()
return all; 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 const A3 A3::extract_modifications () const
{ {

View file

@ -60,7 +60,6 @@ public:
bool find_command (std::string&) const; bool find_command (std::string&) const;
const std::string find_limit () const; const std::string find_limit () const;
const A3 extract_filter () const;
const A3 extract_modifications () const; const A3 extract_modifications () const;
const A3 tokenize (const A3&) const; const A3 tokenize (const A3&) const;