summaryrefslogtreecommitdiff
path: root/monkey/filetype.c
diff options
context:
space:
mode:
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