From 90875427bbfa35861a18a30d71b08366e6e70b5e Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Wed, 5 Dec 2018 19:46:31 +0100 Subject: Revert "Add assert to check sanity of input." --- searchlib/src/vespa/searchlib/datastore/entryref.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/searchlib/src/vespa/searchlib/datastore/entryref.h b/searchlib/src/vespa/searchlib/datastore/entryref.h index 9321ad8b8d1..433c260de32 100644 --- a/searchlib/src/vespa/searchlib/datastore/entryref.h +++ b/searchlib/src/vespa/searchlib/datastore/entryref.h @@ -3,7 +3,6 @@ #pragma once #include -#include namespace search::datastore { @@ -29,11 +28,7 @@ class EntryRefT : public EntryRef { public: EntryRefT() : EntryRef() {} EntryRefT(uint64_t offset_, uint32_t bufferId_) : - EntryRef((offset_ << BufferBits) + bufferId_) - { - assert(offset_ < offsetSize()); - assert(bufferId_ < numBuffers()); - } + EntryRef((offset_ << BufferBits) + bufferId_) {} EntryRefT(const EntryRef & ref_) : EntryRef(ref_.ref()) {} uint32_t hash() const { return offset() + (bufferId() << OffsetBits); } uint64_t offset() const { return _ref >> BufferBits; } -- cgit v1.2.3