summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-07-01 10:44:47 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-07-01 10:44:47 +0000
commit163a0812e6b01db5ea9807b9e0e5671ff2e192a5 (patch)
treec65a1dc1acff4b16abd2a66c49657e94c70050d6 /vespalib
parent6b2819bbb4eed26003f4aff9bc5a54a237585b3d (diff)
GC bad and unused method.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/data/slime/symbol.h6
-rw-r--r--vespalib/src/vespa/vespalib/stllike/vector_map.h1
2 files changed, 3 insertions, 4 deletions
diff --git a/vespalib/src/vespa/vespalib/data/slime/symbol.h b/vespalib/src/vespa/vespalib/data/slime/symbol.h
index 77620f3ff92..020fc8bc827 100644
--- a/vespalib/src/vespa/vespalib/data/slime/symbol.h
+++ b/vespalib/src/vespa/vespalib/data/slime/symbol.h
@@ -12,13 +12,13 @@ namespace vespalib::slime {
class Symbol
{
private:
- static const uint32_t UNDEFINED = (uint32_t)-1;
+ static constexpr uint32_t UNDEFINED = (uint32_t)-1;
uint32_t _value;
public:
- Symbol() : _value(UNDEFINED) {}
- Symbol(uint32_t v) : _value(v) {}
+ Symbol() noexcept : _value(UNDEFINED) {}
+ Symbol(uint32_t v) noexcept : _value(v) {}
bool undefined() const { return (_value == UNDEFINED); }
uint32_t getValue() const { return _value; }
bool operator<(const Symbol &rhs) const noexcept { return (_value < rhs._value); }
diff --git a/vespalib/src/vespa/vespalib/stllike/vector_map.h b/vespalib/src/vespa/vespalib/stllike/vector_map.h
index 2e185fe7dbf..d9c5fd44bea 100644
--- a/vespalib/src/vespa/vespalib/stllike/vector_map.h
+++ b/vespalib/src/vespa/vespalib/stllike/vector_map.h
@@ -52,7 +52,6 @@ public:
size_t capacity() const { return _ht.capacity(); }
size_t size() const { return _ht.size(); }
bool empty() const { return _ht.empty(); }
- V & operator [] (const K & key) const { return find(key)->second; }
V & operator [] (const K & key);
void erase(const K & key) { return _ht.erase(find(key)); }
void erase(iterator it) { return _ht.erase(it); }