From 50e4de9d0813bfdd793edf60814f46765cb1734c Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Sun, 4 Oct 2020 10:59:15 -0500 Subject: Don't reinvent the wheel --- P1/src/mapper.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'P1') diff --git a/P1/src/mapper.c b/P1/src/mapper.c index 8bbd2a6..8aff3ec 100644 --- a/P1/src/mapper.c +++ b/P1/src/mapper.c @@ -78,18 +78,7 @@ while (root != NULL) { // emit the into intermediate DS // eats the data into the DS void emit(char *key, char *value) { - //Go through intermediateDS, comparing key in list to *key. - //If it exists, somehow add to the value list another "1" to the existing list. - //If it never does (use string compare thing), add it to the end along with the "1". - - /* THIS IS NOT CURRENTLY IMPLEMENTED PROPERLY BUT SHOULD BE ABOUT RIGHT - CONCEPTUALLY. - intermediateDS *tempNode = NULL; - while (root != NULL) { - tempNode = root; - root = root -> next; - } - */ + } // map function -- cgit v1.2.3