diff options
Diffstat (limited to 'document/src/vespa/document/datatype/documenttype.cpp')
-rw-r--r-- | document/src/vespa/document/datatype/documenttype.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/document/src/vespa/document/datatype/documenttype.cpp b/document/src/vespa/document/datatype/documenttype.cpp index 61bfba3b028..c7eaf42b50b 100644 --- a/document/src/vespa/document/datatype/documenttype.cpp +++ b/document/src/vespa/document/datatype/documenttype.cpp @@ -75,17 +75,6 @@ DocumentType::~DocumentType() DocumentType & DocumentType::addFieldSet(const vespalib::string & name, const FieldSet::Fields & fields) { - for (FieldSet::Fields::const_iterator it(fields.begin()), mt(fields.end()); it != mt; it++) { - if ( ! _fields->hasField(*it) ) { - FieldPath fieldPath; - try { - _fields->buildFieldPath(fieldPath, *it); - } catch (FieldNotFoundException & e) { - throw IllegalArgumentException("Fieldset '" + name + "': No field with name '" + *it + - "' in document type '" + getName() + "'.", VESPA_STRLOC); - } - } - } _fieldSets[name] = FieldSet(name, fields); return *this; } |