- Removed obsolete ::which_operator.
This commit is contained in:
Paul Beckingham 2014-05-25 19:02:44 -04:00
parent 3abff20a46
commit f495e7c385
3 changed files with 0 additions and 24 deletions

View file

@ -1484,27 +1484,6 @@ bool A3::extract_uuid (
return false; return false;
} }
////////////////////////////////////////////////////////////////////////////////
bool A3::which_operator (
const std::string& input,
char& type,
int& precedence,
char& associativity)
{
for (unsigned int i = 0; i < NUM_OPERATORS; ++i)
{
if (operators[i].op == input)
{
type = operators[i].type;
precedence = operators[i].precedence;
associativity = operators[i].associativity;
return true;
}
}
return false;
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void A3::dump (const std::string& label) const void A3::dump (const std::string& label) const
{ {

View file

@ -84,8 +84,6 @@ public:
static bool extract_id (const std::string&, std::vector <int>&); static bool extract_id (const std::string&, std::vector <int>&);
static bool extract_uuid (const std::string&, std::vector <std::string>&); static bool extract_uuid (const std::string&, std::vector <std::string>&);
static bool which_operator (const std::string&, char&, int&, char&);
void dump (const std::string&) const; void dump (const std::string&) const;
}; };

View file

@ -31,7 +31,6 @@
#include <map> #include <map>
#include <string> #include <string>
#include <stdio.h> #include <stdio.h>
#include <A3.h>
class Task : public std::map <std::string, std::string> class Task : public std::map <std::string, std::string>
{ {