summaryrefslogtreecommitdiffstats
path: root/document/src
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-05-30 21:49:01 +0200
committerHenning Baldersheim <balder@oath.com>2018-05-31 13:48:59 +0200
commit51d9070a1184af82b85dafb6c8f2dd6d6b635c2e (patch)
tree015918e634d1ee112af117b09aeda2c87eacf7af /document/src
parent4b97af420a3b0b6842e51e0ee1a8481e81050d66 (diff)
Though shall never produce old format again, except from tests.
Diffstat (limited to 'document/src')
-rw-r--r--document/src/vespa/document/serialization/vespadocumentserializer.h2
-rw-r--r--document/src/vespa/document/update/documentupdate.cpp7
-rw-r--r--document/src/vespa/document/update/documentupdate.h1
3 files changed, 1 insertions, 9 deletions
diff --git a/document/src/vespa/document/serialization/vespadocumentserializer.h b/document/src/vespa/document/serialization/vespadocumentserializer.h
index 3b0fe581c9e..818759d35b5 100644
--- a/document/src/vespa/document/serialization/vespadocumentserializer.h
+++ b/document/src/vespa/document/serialization/vespadocumentserializer.h
@@ -76,7 +76,7 @@ private:
void write(const AssignFieldPathUpdate &value);
void write(const RemoveFieldPathUpdate &value);
- void visit(const DocumentUpdate &value) override { write42(value); }
+ void visit(const DocumentUpdate &value) override { writeHEAD(value); }
void visit(const FieldUpdate &value) override { write(value); }
void visit(const RemoveValueUpdate &value) override { write(value); }
void visit(const AddValueUpdate &value) override { write(value); }
diff --git a/document/src/vespa/document/update/documentupdate.cpp b/document/src/vespa/document/update/documentupdate.cpp
index c4e8213f1df..a5e25afbcb3 100644
--- a/document/src/vespa/document/update/documentupdate.cpp
+++ b/document/src/vespa/document/update/documentupdate.cpp
@@ -159,13 +159,6 @@ DocumentUpdate::applyTo(Document& doc) const
}
void
-DocumentUpdate::serialize42(nbostream &stream) const
-{
- VespaDocumentSerializer serializer(stream);
- serializer.write42(*this);
-}
-
-void
DocumentUpdate::serializeHEAD(nbostream &stream) const
{
VespaDocumentSerializer serializer(stream);
diff --git a/document/src/vespa/document/update/documentupdate.h b/document/src/vespa/document/update/documentupdate.h
index 759e0131694..839847ed175 100644
--- a/document/src/vespa/document/update/documentupdate.h
+++ b/document/src/vespa/document/update/documentupdate.h
@@ -133,7 +133,6 @@ public:
void deserialize42(const DocumentTypeRepo&, ByteBuffer&);
void deserializeHEAD(const DocumentTypeRepo&, ByteBuffer&);
- void serialize42(vespalib::nbostream &stream) const;
void serializeHEAD(vespalib::nbostream &stream) const;
void printXml(XmlOutputStream&) const override;