summaryrefslogtreecommitdiff
path: root/monkey/filetype.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-07-12 17:28:03 +0100
committerVincent Sanders <vince@kyllikki.org>2015-07-12 17:28:03 +0100
commit82beca0432545857578537a206e0a6ccca7de252 (patch)
treed7ca0935814f91973db29269d8704a6e51d44a2e /monkey/filetype.c
parent3862549ed9daf503b854b3851a0d105c611abb29 (diff)
downloadnetsurf-82beca0432545857578537a206e0a6ccca7de252.tar.gz
netsurf-82beca0432545857578537a206e0a6ccca7de252.tar.bz2
Complete hash table tests and clean up ineterface.
Diffstat (limited to 'monkey/filetype.c')
-rw-r--r--monkey/filetype.c26
1 files changed, 0 insertions, 26 deletions
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