RX: Dead code removal

This commit is contained in:
Paul Beckingham 2015-07-17 14:44:31 -04:00
parent 3f1f4853d6
commit 49659e92a7
2 changed files with 0 additions and 40 deletions

View file

@ -29,14 +29,6 @@
#include <string.h>
#include <RX.h>
////////////////////////////////////////////////////////////////////////////////
RX::RX ()
: _compiled (false)
, _pattern ("")
, _case_sensitive (true)
{
}
////////////////////////////////////////////////////////////////////////////////
RX::RX (
const std::string& pattern,
@ -48,34 +40,6 @@ RX::RX (
compile ();
}
////////////////////////////////////////////////////////////////////////////////
RX::RX (const RX& other)
: _compiled (false)
, _pattern (other._pattern)
, _case_sensitive (other._case_sensitive)
{
}
////////////////////////////////////////////////////////////////////////////////
RX& RX::operator= (const RX& other)
{
if (this != &other)
{
_compiled = false;
_pattern = other._pattern;
_case_sensitive = other._case_sensitive;
}
return *this;
}
////////////////////////////////////////////////////////////////////////////////
bool RX::operator== (const RX& other) const
{
return _pattern == other._pattern &&
_case_sensitive == other._case_sensitive;
}
////////////////////////////////////////////////////////////////////////////////
RX::~RX ()
{

View file

@ -34,11 +34,7 @@
class RX
{
public:
RX ();
RX (const std::string&, bool caseSensitive = true);
RX (const RX&);
RX& operator= (const RX&);
bool operator== (const RX&) const;
~RX ();
bool match (const std::string&);