summaryrefslogtreecommitdiff
path: root/beos/gui.cpp
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-05-26 23:43:36 +0100
committerVincent Sanders <vince@kyllikki.org>2014-05-26 23:52:36 +0100
commit00b6cfc57e27f8146d9b41ba8e63038a4f9df70e (patch)
treebadf71a43a81975098d3f1294073d8c76bc994ea /beos/gui.cpp
parent1f337f292d1c98c396d5f8d5d294f9ba13963586 (diff)
downloadnetsurf-00b6cfc57e27f8146d9b41ba8e63038a4f9df70e.tar.gz
netsurf-00b6cfc57e27f8146d9b41ba8e63038a4f9df70e.tar.bz2
rework path to url mapping functions to convert from and to nsurl
Diffstat (limited to 'beos/gui.cpp')
-rw-r--r--beos/gui.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/beos/gui.cpp b/beos/gui.cpp
index 56d5bfe99..d21dbe512 100644
--- a/beos/gui.cpp
+++ b/beos/gui.cpp
@@ -964,25 +964,6 @@ static void nsbeos_create_ssl_verify_window(struct browser_window *bw,
CALLED();
}
-static char *path_to_url(const char *path)
-{
- int urllen = strlen(path) + FILE_SCHEME_PREFIX_LEN + 1;
- char *url = (char *)malloc(urllen);
-
- if (url == NULL) {
- return NULL;
- }
-
- if (*path == '/') {
- path++; /* file: paths are already absolute */
- }
-
- snprintf(url, urllen, "%s%s", FILE_SCHEME_PREFIX, path);
-
- return url;
-}
-
-
static void *myrealloc(void *ptr, size_t len, void *pw)
{
if (len == 0) {
@@ -1001,8 +982,6 @@ static struct gui_clipboard_table beos_clipboard_table = {
static struct gui_fetch_table beos_fetch_table = {
fetch_filetype,
- path_to_url,
- url_to_path,
gui_get_resource_url,
NULL //fetch_mimetype
};