diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-12-03 11:14:52 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-12-03 11:23:25 +0000 |
commit | 957237a4e2859bda5ccaf536c0553092f0edde76 (patch) | |
tree | a4fedcd3a0b06a0d3ddb5fb6038e66cfc1d54eba /searchcore | |
parent | f5a3b49a2f3fe9f926b28633946ed0a47768516d (diff) |
simplify notImplemented()
* no need for notImplemented() to be virtual
* special version for documentmetastore does not seem to
add any value
* ensure [[noreturn]] attribute actually works
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastoreattribute.cpp | 9 | ||||
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastoreattribute.h | 3 |
2 files changed, 0 insertions, 12 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastoreattribute.cpp b/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastoreattribute.cpp index 7fab995dfb9..fa8097419a5 100644 --- a/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastoreattribute.cpp +++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastoreattribute.cpp @@ -17,15 +17,6 @@ DocumentMetaStoreAttribute::getFixedName() return _G_documentMetaStoreName; } - -void -DocumentMetaStoreAttribute::notImplemented() const -{ - throw vespalib::IllegalStateException( - "The function is not implemented for DocumentMetaStoreAttribute"); -} - - DocumentMetaStoreAttribute::DocumentMetaStoreAttribute(const vespalib::string &name) : NotImplementedAttribute(name, Config(BasicType::NONE)) { } diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastoreattribute.h b/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastoreattribute.h index 721aa8fe126..f4e936e663a 100644 --- a/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastoreattribute.h +++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastoreattribute.h @@ -13,9 +13,6 @@ namespace proton { **/ class DocumentMetaStoreAttribute : public search::NotImplementedAttribute { -protected: - void notImplemented() const override __attribute__((noinline)); - public: DocumentMetaStoreAttribute(const vespalib::string &name=getFixedName()); ~DocumentMetaStoreAttribute() override; |