summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-04-14 12:47:40 +0000
committerJames Bursa <james@netsurf-browser.org>2004-04-14 12:47:40 +0000
commit9978864c34a3b755f45deab47e956040eb8baaa2 (patch)
treeda42274a030ca9e46e8b6a3226de5ed8ef9c83a4 /content
parent6f9b7ab40ddfc8865bb96d8ec56c7703deffd81e (diff)
downloadnetsurf-9978864c34a3b755f45deab47e956040eb8baaa2.tar.gz
netsurf-9978864c34a3b755f45deab47e956040eb8baaa2.tar.bz2
[project @ 2004-04-14 12:47:40 by bursa]
Remove obsolete files. svn path=/import/netsurf/; revision=781
Diffstat (limited to 'content')
-rw-r--r--content/other.c58
-rw-r--r--content/other.h34
2 files changed, 0 insertions, 92 deletions
diff --git a/content/other.c b/content/other.c
deleted file mode 100644
index a4ef7bec7..000000000
--- a/content/other.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * This file is part of NetSurf, http://netsurf.sourceforge.net/
- * Licensed under the GNU General Public License,
- * http://www.opensource.org/licenses/gpl-license
- * Copyright 2003 James Bursa <bursa@users.sourceforge.net>
- */
-
-/** \file
- * Content for unknown types (implementation).
- */
-
-#include <assert.h>
-#include <string.h>
-#include <stdlib.h>
-#include "netsurf/content/content.h"
-#include "netsurf/content/other.h"
-#include "netsurf/utils/utils.h"
-
-
-void other_create(struct content *c, char *params[])
-{
- c->data.other.data = xcalloc(0, 1);
- c->data.other.length = 0;
-}
-
-
-void other_process_data(struct content *c, char *data, unsigned long size)
-{
- c->data.other.data = xrealloc(c->data.other.data, c->data.other.length + size);
- memcpy(c->data.other.data + c->data.other.length, data, size);
- c->data.other.length += size;
- c->size += size;
-}
-
-
-int other_convert(struct content *c, unsigned int width, unsigned int height)
-{
- c->status = CONTENT_STATUS_DONE;
- return 0;
-}
-
-
-void other_revive(struct content *c, unsigned int width, unsigned int height)
-{
- assert(0);
-}
-
-
-void other_reformat(struct content *c, unsigned int width, unsigned int height)
-{
- assert(0);
-}
-
-
-void other_destroy(struct content *c)
-{
- free(c->data.other.data);
-}
diff --git a/content/other.h b/content/other.h
deleted file mode 100644
index 71fd4aab4..000000000
--- a/content/other.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * This file is part of NetSurf, http://netsurf.sourceforge.net/
- * Licensed under the GNU General Public License,
- * http://www.opensource.org/licenses/gpl-license
- * Copyright 2003 James Bursa <bursa@users.sourceforge.net>
- */
-
-/** \file
- * Content for unknown types (interface).
- *
- * This handles ::content structures of type CONTENT_OTHER. It is used as a
- * fallback when the MIME type of a URL is not recognised. The data is simply
- * stored as it is received.
- */
-
-#ifndef _NETSURF_RISCOS_OTHER_H_
-#define _NETSURF_RISCOS_OTHER_H_
-
-struct content;
-
-/** Data specific to CONTENT_OTHER. */
-struct content_other_data {
- char *data; /**< Stored data. */
- unsigned long length; /**< Current length of stored data. */
-};
-
-void other_create(struct content *c, char *params[]);
-void other_process_data(struct content *c, char *data, unsigned long size);
-int other_convert(struct content *c, unsigned int width, unsigned int height);
-void other_revive(struct content *c, unsigned int width, unsigned int height);
-void other_reformat(struct content *c, unsigned int width, unsigned int height);
-void other_destroy(struct content *c);
-
-#endif