From e861f873643063d02b5f05f519ce7462fe3f3b26 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 26 Jul 2017 21:44:24 +0200 Subject: [PATCH] removed unused msg item class that caused aliasing warnings (serialisation of time_t as uint32_t) --- libretroshare/src/rsitems/rsmsgitems.cc | 11 ----------- libretroshare/src/rsitems/rsmsgitems.h | 15 --------------- 2 files changed, 26 deletions(-) diff --git a/libretroshare/src/rsitems/rsmsgitems.cc b/libretroshare/src/rsitems/rsmsgitems.cc index 09f305fc7..e9668cc9f 100644 --- a/libretroshare/src/rsitems/rsmsgitems.cc +++ b/libretroshare/src/rsitems/rsmsgitems.cc @@ -52,7 +52,6 @@ RsItem *RsMsgSerialiser::create_item(uint16_t service,uint8_t type) const case RS_PKT_SUBTYPE_MSG_TAGS : return new RsMsgTags() ; //= 0x04; case RS_PKT_SUBTYPE_MSG_SRC_TAG : return new RsMsgSrcId(); //= 0x05; case RS_PKT_SUBTYPE_MSG_PARENT_TAG : return new RsMsgParentId() ; //= 0x06; - case RS_PKT_SUBTYPE_MSG_INVITE : return new RsPublicMsgInviteConfigItem(); //= 0x07; case RS_PKT_SUBTYPE_MSG_GROUTER_MAP : return new RsMsgGRouterMap(); //= 0x08; case RS_PKT_SUBTYPE_MSG_DISTANT_MSG_MAP : return new RsMsgDistantMessagesHashMap();//= 0x09; default: @@ -80,11 +79,6 @@ void RsMsgItem::clear() attachment.TlvClear(); } -void RsPublicMsgInviteConfigItem::serial_process(RsGenericSerializer::SerializeJob j,RsGenericSerializer::SerializeContext& ctx) -{ - RsTypeSerializer::serial_process(j,ctx,TLV_TYPE_STR_HASH_SHA1,hash,"hash") ; - RsTypeSerializer::serial_process(j,ctx,(uint32_t&)time_stamp,"time_stamp") ; -} void RsMsgTagType::serial_process(RsGenericSerializer::SerializeJob j,RsGenericSerializer::SerializeContext& ctx) { RsTypeSerializer::serial_process(j,ctx,TLV_TYPE_STR_NAME,text,"text") ; @@ -169,11 +163,6 @@ void RsMsgTagType::clear() rgb_color = 0; } -void RsPublicMsgInviteConfigItem::clear() -{ - hash.clear() ; - time_stamp = 0 ; -} void RsMsgTags::clear() { msgId = 0; diff --git a/libretroshare/src/rsitems/rsmsgitems.h b/libretroshare/src/rsitems/rsmsgitems.h index b35d9ea9f..71f546683 100644 --- a/libretroshare/src/rsitems/rsmsgitems.h +++ b/libretroshare/src/rsitems/rsmsgitems.h @@ -175,21 +175,6 @@ class RsMsgSrcId : public RsMessageItem uint32_t msgId; RsPeerId srcId; }; -class RsPublicMsgInviteConfigItem : public RsMessageItem -{ - public: - RsPublicMsgInviteConfigItem() : RsMessageItem(RS_PKT_SUBTYPE_MSG_INVITE) {} - - virtual void serial_process(RsGenericSerializer::SerializeJob /* j */,RsGenericSerializer::SerializeContext& /* ctx */); - - virtual ~RsPublicMsgInviteConfigItem() {} - virtual void clear(); - - // ----------- Specific fields ------------- // - // - std::string hash ; - time_t time_stamp ; -}; class RsMsgGRouterMap : public RsMessageItem {