removed unused print methods in some RsItems since now print is handled by serializer

This commit is contained in:
csoler 2020-02-29 12:14:37 +01:00
parent 34fc132003
commit 4124585b55
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
6 changed files with 0 additions and 15 deletions

View File

@ -99,8 +99,6 @@ class RsChatItem: public RsItem
}
virtual ~RsChatItem() {}
virtual std::ostream& print(std::ostream &out, uint16_t /*indent*/ = 0) { return out; } // derived from RsItem, but should be removed
virtual void clear() {}
};

View File

@ -181,8 +181,6 @@ public:
{}
void clear() {}
std::ostream &print(std::ostream &out, uint16_t /*indent = 0*/)
{ return out; }
};
class RsGxsTransSerializer;

View File

@ -173,9 +173,6 @@ void RsNxsMsg::clear()
meta.TlvClear();
}
std::ostream&RsNxsMsg::print(std::ostream& out, uint16_t /*indent*/)
{ return out; }
void RsNxsGrp::clear()
{
grpId.clear();

View File

@ -378,7 +378,6 @@ struct RsNxsMsg : RsNxsItem
RsGenericSerializer::SerializeContext& ctx );
virtual void clear();
virtual std::ostream &print(std::ostream& out, uint16_t indent);
uint8_t pos; /// used for splitting up msg
uint8_t count; /// number of split up messages

View File

@ -60,11 +60,6 @@ void RsFeedReaderFeed::clear()
content.clear();
}
std::ostream &RsFeedReaderFeed::print(std::ostream &out, uint16_t /*indent*/)
{
return out;
}
uint32_t RsFeedReaderSerialiser::sizeFeed(RsFeedReaderFeed *item)
{
uint32_t s = 8; /* header */

View File

@ -64,7 +64,6 @@ public:
std::string msgData;
std::ostream &print(std::ostream &out, uint16_t /*indent*/ = 0){ return out; }
void clear() { msgData.clear(); }
};
@ -79,7 +78,6 @@ public:
std::string grpData;
void clear() { grpData.clear(); }
std::ostream &print(std::ostream &out, uint16_t /*indent*/ = 0){ return out; }
};