Msg: Dead code removal

This commit is contained in:
Paul Beckingham 2015-07-17 19:36:03 -04:00
parent fdac097c12
commit 3a7f970834
2 changed files with 0 additions and 52 deletions

View file

@ -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)
{

View file

@ -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;