summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--document/src/vespa/document/update/fieldupdate.cpp14
-rw-r--r--document/src/vespa/document/update/fieldupdate.h8
2 files changed, 8 insertions, 14 deletions
diff --git a/document/src/vespa/document/update/fieldupdate.cpp b/document/src/vespa/document/update/fieldupdate.cpp
index 57396da15ac..667b9198c11 100644
--- a/document/src/vespa/document/update/fieldupdate.cpp
+++ b/document/src/vespa/document/update/fieldupdate.cpp
@@ -16,21 +16,9 @@ FieldUpdate::FieldUpdate(const Field& field)
{
}
-// Construct a field update by deserialization.
-FieldUpdate::FieldUpdate(const DocumentTypeRepo& repo,
- const DocumentType& type,
- ByteBuffer& buffer,
- int16_t version)
- : Printable(),
- _field(),
- _updates()
-{
- deserialize(repo, type, buffer, version);
-}
-
FieldUpdate::FieldUpdate(const FieldUpdate &) = default;
FieldUpdate & FieldUpdate::operator = (const FieldUpdate &) = default;
-FieldUpdate::~FieldUpdate() {}
+FieldUpdate::~FieldUpdate() = default;
bool
FieldUpdate::operator==(const FieldUpdate& other) const
diff --git a/document/src/vespa/document/update/fieldupdate.h b/document/src/vespa/document/update/fieldupdate.h
index 3f7b3dde3f7..9c2ba66a56d 100644
--- a/document/src/vespa/document/update/fieldupdate.h
+++ b/document/src/vespa/document/update/fieldupdate.h
@@ -49,7 +49,13 @@ public:
* @param serializationVersion The serialization version the update was serialized with.
*/
FieldUpdate(const DocumentTypeRepo& repo, const DocumentType& type,
- ByteBuffer& buffer, int16_t serializationVersion);
+ ByteBuffer& buffer, int16_t version)
+ : Printable(),
+ _field(),
+ _updates()
+ {
+ deserialize(repo, type, buffer, version);
+ }
bool operator==(const FieldUpdate&) const;
bool operator!=(const FieldUpdate & rhs) const { return ! (*this == rhs); }