From 490f52205f67aea157ca149de6939fc7a004b95c Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 1 Feb 2018 00:39:18 -0800 Subject: [PATCH] Clean serializer --- src/serializer.cc | 10 ---------- src/serializer.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/src/serializer.cc b/src/serializer.cc index fdadd50f..877b7631 100644 --- a/src/serializer.cc +++ b/src/serializer.cc @@ -123,12 +123,6 @@ void Reflect(Writer& visitor, std::string_view& data) { } -// ReflectMember -void ReflectMember(Writer& visitor, const char* name, std::string& value) { - visitor.Key(name); - Reflect(visitor, value); -} - // TODO: Move this to indexer.cc void Reflect(Reader& visitor, IndexInclude& value) { REFLECT_MEMBER_START(); @@ -190,10 +184,6 @@ void ReflectShortName(Writer& visitor, Def& def) { } } -template -void ReflectShortName(MessagePackWriter& visitor, Def& def) { -} - template void Reflect(TVisitor& visitor, IndexType& value) { REFLECT_MEMBER_START(); diff --git a/src/serializer.h b/src/serializer.h index 51cc2223..f93c95aa 100644 --- a/src/serializer.h +++ b/src/serializer.h @@ -339,8 +339,6 @@ void ReflectMember(Writer& visitor, const char* name, T& value) { Reflect(visitor, value); } -void ReflectMember(Writer& visitor, const char* name, std::string& value); - // API std::string Serialize(SerializeFormat format, IndexFile& file);