summaryrefslogtreecommitdiffstats
path: root/vdslib
diff options
context:
space:
mode:
Diffstat (limited to 'vdslib')
-rw-r--r--vdslib/src/vespa/vdslib/container/mutabledocumentlist.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/vdslib/src/vespa/vdslib/container/mutabledocumentlist.cpp b/vdslib/src/vespa/vdslib/container/mutabledocumentlist.cpp
index 6ceffa9cff7..1c80e3ba8ee 100644
--- a/vdslib/src/vespa/vdslib/container/mutabledocumentlist.cpp
+++ b/vdslib/src/vespa/vdslib/container/mutabledocumentlist.cpp
@@ -6,23 +6,6 @@
using vespalib::nbostream;
-namespace {
-
-bool hasBodyField(const document::Document & value) {
- for (document::StructuredFieldValue::const_iterator it(value.getFields().begin()), mt(value.getFields().end());
- it != mt;
- ++it)
- {
- if ( ! it.field().isHeaderField() ) {
- return true;
- }
- }
- return false;
-}
-
-}
-
-
namespace vdslib {
MutableDocumentList::MutableDocumentList(const document::DocumentTypeRepo::SP & repo, char* buffer, uint32_t bufferSize, bool keepexisting)
: DocumentList(repo, buffer, bufferSize, keepexisting)
@@ -66,7 +49,7 @@ MutableDocumentList::addPut(const document::Document& doc, Timestamp ts,
doc.serializeHeader(stream);
uint32_t headerSize = stream.size();
- if (addBody && hasBodyField(doc)) {
+ if (addBody) {
doc.serializeBody(stream);
}