small edits
[iotcloud.git] / version2 / src / C / hashtable.h
index e82874680981b741db3f8a7806955a092257bbde..439e48bb5b461e07d065210a449c54e87b89f01e 100755 (executable)
@@ -132,17 +132,6 @@ public:
                tail = list = NULL;
        }
 
-       /** Doesn't work with zero value */
-       _Val getRandomValue() {
-               while (true) {
-                       unsigned int index = random() & capacitymask;
-                       struct Hashlistnode<_Key, _Val> *bin = &table[index];
-                       if (bin->key != NULL && bin->val != NULL) {
-                               return bin->val;
-                       }
-               }
-       }
-
        void resetAndDeleteKeys() {
                for (unsigned int i = 0; i < capacity; i++) {
                        struct Hashlistnode<_Key, _Val> *bin = &table[i];