← cproj

add testing

0c76dec8c166f204fa95de03eeb814b594f3551a · Ovidiu · Jul 23, 2019 11:55

+2 −9 · 1 file changed

  • mylib/test/t_hash.c +2 −9
diff --git a/mylib/test/t_hash.c b/mylib/test/t_hash.c
index f6d74b3..f8d4e79 100644
--- a/mylib/test/t_hash.c
+++ b/mylib/test/t_hash.c
@@ -75,15 +75,11 @@ static void dumpTable (HashTable *table, bool verbose) {
 			fprintf(stderr, "No colon was found %s\n",found);
 		}
 		else {
-			//kvpair *kvp;
 			*str1 = '\0';
-			//fprintf(stderr,"%s\n", value);
-				struct Tuple r = {found, str1+1};
-				return r;
+			struct Tuple r = {found, str1+1};
+			return r;
 
 		}
-		//fprintf(stderr,"Done\n");
-
 	}
 }
 // remvoe elements from hashtale
@@ -99,7 +95,6 @@ static char *readFile(char *fn) {
 
 	// buffer
 	char *buf = NULL;
-//	size_t stringSize;
 	size_t readSize;
 
 	if (stream) {
@@ -131,9 +126,7 @@ static char *readFile(char *fn) {
 	}
 	return buf;
 }
-#if 0
 
-#endif
 // insert multpile keys
 //