aboutsummaryrefslogtreecommitdiff
path: root/src/url.c
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2015-06-01 16:40:10 +0000
committercorvid <devnull@localhost>2015-06-01 16:40:10 +0000
commit40989a38306d1dd5d356a6b049574e6434e1abb7 (patch)
treefe349d9c7c757e62b15a3758d6d4e6d3b18a044f /src/url.c
parentb4b85a7947a05841aa728a98d42c1e3ab66489d6 (diff)
rm the old-style url alt stuff
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/url.c b/src/url.c
index 7112f461..6fee97c3 100644
--- a/src/url.c
+++ b/src/url.c
@@ -204,7 +204,6 @@ void a_Url_free(DilloUrl *url)
dFree((char *)url->hostname);
dFree((char *)url->buffer);
dStr_free(url->data, 1);
- dFree((char *)url->alt);
dFree(url);
}
}
@@ -352,7 +351,6 @@ done:
* port = 8080
* flags = URL_Get
* data = Dstr * ("")
- * alt = NULL
* ismap_url_len = 0
* }
*
@@ -431,7 +429,6 @@ DilloUrl* a_Url_dup(const DilloUrl *ori)
url->url_string = dStr_new(URL_STR(ori));
url->port = ori->port;
url->flags = ori->flags;
- url->alt = dStrdup(ori->alt);
url->ismap_url_len = ori->ismap_url_len;
url->illegal_chars = ori->illegal_chars;
url->illegal_chars_spc = ori->illegal_chars_spc;
@@ -491,17 +488,6 @@ void a_Url_set_data(DilloUrl *u, Dstr **data)
}
/*
- * Set DilloUrl alt (alternate text to the URL. Used by image maps)
- */
-void a_Url_set_alt(DilloUrl *u, const char *alt)
-{
- if (u) {
- dFree((char *)u->alt);
- u->alt = dStrdup(alt);
- }
-}
-
-/*
* Set DilloUrl ismap coordinates
* (this is optimized for not hogging the CPU)
*/