Clean serializer

This commit is contained in:
Fangrui Song 2018-02-01 00:39:18 -08:00
parent 57ea5f7cb9
commit 490f52205f
2 changed files with 0 additions and 12 deletions

View File

@ -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 <typename Def>
void ReflectShortName(MessagePackWriter& visitor, Def& def) {
}
template <typename TVisitor>
void Reflect(TVisitor& visitor, IndexType& value) {
REFLECT_MEMBER_START();

View File

@ -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);