From 82beca0432545857578537a206e0a6ccca7de252 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 12 Jul 2015 17:28:03 +0100 Subject: Complete hash table tests and clean up ineterface. --- monkey/filetype.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'monkey') diff --git a/monkey/filetype.c b/monkey/filetype.c index 891dcd30b..2f9566c09 100644 --- a/monkey/filetype.c +++ b/monkey/filetype.c @@ -212,29 +212,3 @@ const char *monkey_fetch_filetype(const char *unix_path) return type != NULL ? type : "text/plain"; } - -#ifdef TEST_RIG - -int main(int argc, char *argv[]) -{ - unsigned int c1, *c2; - const char *key; - - gtk_fetch_filetype_init("./mime.types"); - - c1 = 0; c2 = 0; - - while ( (key = hash_iterate(mime_hash, &c1, &c2)) != NULL) { - printf("%s ", key); - } - - printf("\n"); - - if (argc > 1) { - printf("%s maps to %s\n", argv[1], fetch_filetype(argv[1])); - } - - gtk_fetch_filetype_fin(); -} - -#endif -- cgit v1.2.3