mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Msg: Dead code removal
This commit is contained in:
parent
fdac097c12
commit
3a7f970834
2 changed files with 0 additions and 52 deletions
45
src/Msg.cpp
45
src/Msg.cpp
|
@ -37,62 +37,17 @@ Msg::Msg ()
|
|||
_header["client"] = PACKAGE_STRING;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Msg::Msg (const Msg& other)
|
||||
: _header (other._header)
|
||||
, _payload (other._payload)
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Msg& Msg::operator= (const Msg& other)
|
||||
{
|
||||
if (this != &other)
|
||||
{
|
||||
_header = other._header;
|
||||
_payload = other._payload;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Msg::operator== (const Msg& other) const
|
||||
{
|
||||
return _header == other._header &&
|
||||
_payload == other._payload;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Msg::~Msg ()
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Msg::clear ()
|
||||
{
|
||||
_header.clear ();
|
||||
_payload = "";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Msg::set (const std::string& name, const int value)
|
||||
{
|
||||
_header[name] = format (value);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Msg::set (const std::string& name, const std::string& value)
|
||||
{
|
||||
_header[name] = value;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Msg::set (const std::string& name, const double value)
|
||||
{
|
||||
_header[name] = format (value);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Msg::setPayload (const std::string& payload)
|
||||
{
|
||||
|
|
|
@ -35,16 +35,9 @@ class Msg
|
|||
{
|
||||
public:
|
||||
Msg ();
|
||||
Msg (const Msg&);
|
||||
Msg& operator= (const Msg&);
|
||||
bool operator== (const Msg&) const;
|
||||
~Msg ();
|
||||
|
||||
void clear ();
|
||||
|
||||
void set (const std::string&, const int);
|
||||
void set (const std::string&, const std::string&);
|
||||
void set (const std::string&, const double);
|
||||
void setPayload (const std::string&);
|
||||
std::string get (const std::string&) const;
|
||||
std::string getPayload () const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue