[ox/oc] Remove setTypeInfo invocation from OC write

This commit is contained in:
Gary Talent 2021-07-29 23:33:09 -05:00
parent d8a13a0933
commit 77bc18129b

View File

@ -149,7 +149,6 @@ Error OrganicClawWriter::field(const char *key, HashMap<String, T> *val) noexcep
template<typename T> template<typename T>
Result<Buffer> writeOC(T *val) noexcept { Result<Buffer> writeOC(T *val) noexcept {
OrganicClawWriter writer; OrganicClawWriter writer;
writer.template setTypeInfo<T>();
oxReturnError(model(&writer, val)); oxReturnError(model(&writer, val));
Json::StreamWriterBuilder jsonBuilder; Json::StreamWriterBuilder jsonBuilder;
const auto str = Json::writeString(jsonBuilder, writer.m_json); const auto str = Json::writeString(jsonBuilder, writer.m_json);