diff options
| author | 2019-08-09 04:07:44 +0100 | |
|---|---|---|
| committer | 2019-08-09 04:07:44 +0100 | |
| commit | 23448e225500f33b78888b01a6c4673b80fbf521 (patch) | |
| tree | e0e0439bf5219ff0b55032d8840d60c352f67c7b /src/base.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
Remove remnants of the old ExtensionItem serialisation system.
Also rm LocalExtItem whilst we are at it as it is now obsolete.
Diffstat (limited to 'src/base.cpp')
| -rw-r--r-- | src/base.cpp | 45 |
1 files changed, 1 insertions, 44 deletions
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<std::string>(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) { } |
