From e7d733881a79e1dd32384908ab4186707c02a0e0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 25 May 2014 18:00:44 -0400 Subject: [PATCH] A3 - Removed obsolete ::extract_modifications method. --- src/A3.cpp | 46 ---------------------------------------------- src/A3.h | 2 -- 2 files changed, 48 deletions(-) diff --git a/src/A3.cpp b/src/A3.cpp index 71d239670..fcf4e7b07 100644 --- a/src/A3.cpp +++ b/src/A3.cpp @@ -520,52 +520,6 @@ const std::vector A3::operator_list () return all; } -//////////////////////////////////////////////////////////////////////////////// -const A3 A3::extract_modifications () const -{ - A3 mods; - - bool before_command = true; - std::vector ::const_iterator arg; - for (arg = this->begin (); arg != this->end (); ++arg) - { - if (arg->_category == Arg::cat_command) - before_command = false; - - else if (! before_command) - { - // rc and override categories are not included. - if (arg->_category == Arg::cat_rc || - arg->_category == Arg::cat_override) - { - ; - } - - // Any arguments identified as "id" or "uuid" are downgraded to "word". - // This is because any true "id" or "uuid" values have already been - // removed in the filter. What remains are numeric arguments in command - // lines that do not otherwise include an id, such as: - // - // task add Read the article on page 2 - else if (arg->_category == Arg::cat_id || - arg->_category == Arg::cat_uuid) - { - Arg downgrade (*arg); - downgrade._type = Arg::type_string; - downgrade._category = Arg::cat_literal; - mods.push_back (downgrade); - } - - // Everything else is included. - else - mods.push_back (*arg); - } - } - - mods = tokenize (mods); - return mods; -} - //////////////////////////////////////////////////////////////////////////////// const A3 A3::tokenize (const A3& input) const { diff --git a/src/A3.h b/src/A3.h index 57eb469da..8f4c4fcc7 100644 --- a/src/A3.h +++ b/src/A3.h @@ -58,8 +58,6 @@ public: const std::vector list () const; bool find_command (std::string&) const; - const A3 extract_modifications () const; - const A3 tokenize (const A3&) const; const A3 postfix (const A3&) const;