From ff5743ba8f71591a115559d8f0727adc0ded3b86 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 30 Mar 2008 02:43:18 +0000 Subject: Cleanup. svn-id: r31316 --- common/hashmap.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/hashmap.h b/common/hashmap.h index 8510fdfbbc..89b06bd5de 100644 --- a/common/hashmap.h +++ b/common/hashmap.h @@ -102,10 +102,6 @@ public: return new Node(key); } - Node *allocNode(Node ©) { - return new Node(copy); - } - void freeNode(Node *node) { delete node; } @@ -388,7 +384,8 @@ void HashMap::assign(const HM_t& map) { _nele = 0; for (uint ctr = 0; ctr < _arrsize; ++ctr) { if (map._arr[ctr] != NULL) { - _arr[ctr] = allocNode(*map._arr[ctr]); + _arr[ctr] = allocNode(map._arr[ctr]->_key); + _arr[ctr]->_value = map._arr[ctr]->_value; _nele++; } } -- cgit v1.2.3