summaryrefslogtreecommitdiff
path: root/src/base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/base.cpp b/src/base.cpp
index e79d336b7..30df1f0e7 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -38,16 +38,7 @@ bool Extensible::Shrink(const std::string &key)
* returns the number of elements removed, std::map
* is single-associative so this should only be 0 or 1
*/
- if(this->Extension_Items.erase(key))
- {
- log(DEBUG, "Shrinking object with item %s",key.c_str());
- return true;
- }
- else
- {
- log(DEBUG, "Tried to shrink object with item %s but no items removed", key.c_str());
- return false;
- }
+ return this->Extension_Items.erase(key);
}
void Extensible::GetExtList(std::deque<std::string> &list)