diff options
Diffstat (limited to 'src/common/simple_string_dictionary.h')
-rw-r--r-- | src/common/simple_string_dictionary.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/simple_string_dictionary.h b/src/common/simple_string_dictionary.h index 28c4bf1c..d2ab17fd 100644 --- a/src/common/simple_string_dictionary.h +++ b/src/common/simple_string_dictionary.h @@ -209,22 +209,20 @@ class NonAllocatingMap { // Given |key|, removes any associated value. |key| must not be NULL. If // the key is not found, this is a noop. - bool RemoveKey(const char* key) { + void RemoveKey(const char* key) { assert(key); if (!key) - return false; + return; Entry* entry = GetEntryForKey(key); if (entry) { entry->key[0] = '\0'; entry->value[0] = '\0'; - return true; } #ifndef NDEBUG assert(GetEntryForKey(key) == NULL); #endif - return false; } // Places a serialized version of the map into |map| and returns the size. |