summaryrefslogtreecommitdiffhomepage
path: root/FoundationEx/Dictionary.inl
diff options
context:
space:
mode:
Diffstat (limited to 'FoundationEx/Dictionary.inl')
-rw-r--r--FoundationEx/Dictionary.inl13
1 files changed, 0 insertions, 13 deletions
diff --git a/FoundationEx/Dictionary.inl b/FoundationEx/Dictionary.inl
index 53ee998..cd58679 100644
--- a/FoundationEx/Dictionary.inl
+++ b/FoundationEx/Dictionary.inl
@@ -63,15 +63,8 @@ T& Dictionary<T>::operator[](const Text& key)
if (cell == 0) { // empty chain
items++;
-
-#ifdef MEM_DEBUG
- cell = new(__FILE__,__LINE__) DictionaryCell<T>(key);
-#else
cell = new DictionaryCell<T>(key);
-#endif
-
table[idx] = cell;
-
return cell->value;
}
else { // search for key
@@ -80,13 +73,7 @@ T& Dictionary<T>::operator[](const Text& key)
if (cell->key != key) { // not found in chain
items++;
-
-#ifdef MEM_DEBUG
- cell->next = new(__FILE__,__LINE__) DictionaryCell<T>(key);
-#else
cell->next = new DictionaryCell<T>(key);
-#endif
-
return cell->next->value;
}
else { // found: return it!