From 1b7112cd1a6ebbd47a2220dc779e8924b9ffa9cc Mon Sep 17 00:00:00 2001 From: = Date: Fri, 6 May 2022 20:44:32 +0200 Subject: Improved sameStr by removing an unnecessary check --- src/storage.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/storage.c') diff --git a/src/storage.c b/src/storage.c index c9dc5d0..9b66132 100644 --- a/src/storage.c +++ b/src/storage.c @@ -2,7 +2,6 @@ row *newRow(const char path[MAXPATH]){ - printf("len: %d\n", len(path)); row *nr = malloc(sizeof(row)); memcpy(nr->path, path, len(path)); nr->numTags = 0; @@ -105,7 +104,6 @@ void insertTag(row *r, char *tag){ i = 0; break; case 0: - printf("'%s' == '%s'\n", arr[i-1], arr[i]); // The tag already exists, no need to alter anything free(arr); return; @@ -168,4 +166,4 @@ void removeTag(row *r, char *tag){ r->tags[tagnum] = '\0'; r->numTags = l; r->lenTags = tagnum; -} \ No newline at end of file +} -- cgit v1.2.3