mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
RX: Dead code removal
This commit is contained in:
parent
3f1f4853d6
commit
49659e92a7
2 changed files with 0 additions and 40 deletions
36
src/RX.cpp
36
src/RX.cpp
|
@ -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 ()
|
||||
{
|
||||
|
|
4
src/RX.h
4
src/RX.h
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue