summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-03 04:30:47 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-03 04:30:47 +0000
commit54a49823b5a6e54054037708ec0b73d197d9b0aa (patch)
treeb685f1c89e72673d4926816ce7237f66445ba1ac
parent54ccbc94edd7cae429129dea5467557aa4039f4e (diff)
downloadnetsurf-54a49823b5a6e54054037708ec0b73d197d9b0aa.tar.gz
netsurf-54a49823b5a6e54054037708ec0b73d197d9b0aa.tar.bz2
Revert r5478, I didn't notice content struct had a mime_type field.
svn path=/trunk/netsurf/; revision=5480
-rw-r--r--content/content.c17
-rw-r--r--content/content.h1
2 files changed, 0 insertions, 18 deletions
diff --git a/content/content.c b/content/content.c
index 090eb399d..935f3657f 100644
--- a/content/content.c
+++ b/content/content.c
@@ -383,23 +383,6 @@ content_type content_lookup(const char *mime_type)
/**
- * Convert a content_type to a MIME type.
- *
- */
-
-const char *content_mime(content_type type)
-{
- struct mime_entry *m;
- int i;
- m = mime_map;
- for (i = MIME_MAP_COUNT - 1; i >= 0; i--)
- if (m[i].type == type)
- return m[i].mime_type;
- return "application/octet-stream";
-}
-
-
-/**
* Create a new content structure.
*
* \param url URL of content, copied
diff --git a/content/content.h b/content/content.h
index a75fd22b2..75be8cfb1 100644
--- a/content/content.h
+++ b/content/content.h
@@ -281,7 +281,6 @@ extern const char * const content_status_name[];
content_type content_lookup(const char *mime_type);
-const char *content_mime(content_type type);
struct content * content_create(const char *url);
struct content * content_get(const char *url);
struct content * content_get_ready(const char *url);