From 23448e225500f33b78888b01a6c4673b80fbf521 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 9 Aug 2019 04:07:44 +0100 Subject: Remove remnants of the old ExtensionItem serialisation system. Also rm LocalExtItem whilst we are at it as it is now obsolete. --- src/base.cpp | 45 +-------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) (limited to 'src/base.cpp') diff --git a/src/base.cpp b/src/base.cpp index 9b4b83691..87671896e 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -250,49 +250,6 @@ std::string ExtensionItem::ToNetwork(const Extensible* container, void* item) co return std::string(); } -std::string ExtensionItem::serialize(SerializeFormat format, const Extensible* container, void* item) const -{ - // Wrap the deprecated API with the new API. - switch (format) - { - case FORMAT_USER: - return ToHuman(container, item); - case FORMAT_INTERNAL: - case FORMAT_PERSIST: - return ToInternal(container, item); - case FORMAT_NETWORK: - return ToNetwork(container, item); - } - return ""; -} - - -void ExtensionItem::unserialize(SerializeFormat format, Extensible* container, const std::string& value) -{ - // Wrap the deprecated API with the new API. - switch (format) - { - case FORMAT_USER: - break; - case FORMAT_INTERNAL: - case FORMAT_PERSIST: - FromInternal(container, value); - break; - case FORMAT_NETWORK: - FromNetwork(container, value); - break; - } -} - -LocalExtItem::LocalExtItem(const std::string& Key, ExtensibleType exttype, Module* mod) - : ExtensionItem(Key, exttype, mod) -{ -} - -LocalExtItem::~LocalExtItem() -{ -} - LocalStringExt::LocalStringExt(const std::string& Key, ExtensibleType exttype, Module* Owner) : SimpleExtItem(Key, exttype, Owner) { @@ -313,7 +270,7 @@ void LocalStringExt::FromInternal(Extensible* container, const std::string& valu } LocalIntExt::LocalIntExt(const std::string& Key, ExtensibleType exttype, Module* mod) - : LocalExtItem(Key, exttype, mod) + : ExtensionItem(Key, exttype, mod) { } -- cgit v1.3.1-10-gc9f91