From: bdemsky Date: Fri, 6 Apr 2018 18:06:04 +0000 (-0700) Subject: small edits X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b9dba5810a481a9b1dfc883e6a33bf3fc9b3d432;p=iotcloud.git small edits --- diff --git a/version2/src/C/TimingSingleton.h b/version2/src/C/TimingSingleton.h index 945f90a..3bc851b 100755 --- a/version2/src/C/TimingSingleton.h +++ b/version2/src/C/TimingSingleton.h @@ -1,6 +1,7 @@ #ifndef TIMINGSINGLETON_H #define TIMINGSINGLETON_H -#include +//#include +#include "common.h" class TimingSingleton { private: @@ -13,8 +14,6 @@ public: } int64_t nanoTime() { - int64_t time; - struct timeval tv; return 0; } diff --git a/version2/src/C/hashtable.h b/version2/src/C/hashtable.h index e828746..439e48b 100755 --- a/version2/src/C/hashtable.h +++ b/version2/src/C/hashtable.h @@ -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];