summaryrefslogtreecommitdiff
path: root/atari/misc.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-20 10:43:58 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-20 10:43:58 +0100
commit3930d00519bbcee968a804b1f445c1638531cc15 (patch)
tree33ff87e76dd6f95d0e4eba80019149bbe59a6001 /atari/misc.c
parent759c34b32447417faeec20513a0e586230f246cd (diff)
downloadnetsurf-3930d00519bbcee968a804b1f445c1638531cc15.tar.gz
netsurf-3930d00519bbcee968a804b1f445c1638531cc15.tar.bz2
atari header cleanup and warning squash
This rationalises atari platform user of headers and squashes a lot of warnings. Should not be viewed as real maintenance, more that it was getting in the way of fixing real core header issues.
Diffstat (limited to 'atari/misc.c')
-rw-r--r--atari/misc.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/atari/misc.c b/atari/misc.c
index ddc66fe9e..b46afb5d0 100644
--- a/atari/misc.c
+++ b/atari/misc.c
@@ -202,60 +202,6 @@ static nserror load_icon_callback(hlcache_handle *handle,
}
-/**
- * utility function. Copied from NetSurf tree API.
- *
- * \param name the name of the loaded icon, if it's not a full path
- * the icon is looked for in the directory specified by
- * icons_dir.
- * \param cb callback function to deal with hlcache callback.
- * \param pw Context pointer to be passed to callback.
- * \return the icon in form of a content or NULL on failure
- */
-hlcache_handle *
-load_icon(const char *name, hlcache_handle_callback cb, void *pw)
-{
- hlcache_handle *c;
- nserror err;
- nsurl *icon_nsurl;
- char * icons_dir = nsoption_charp(tree_icons_path);
-
- /** @todo something like bitmap_from_disc is needed here */
-
- if (!strncmp(name, "file://", 7)) {
- err = nsurl_create(name, &icon_nsurl);
- } else {
- char *native_path = NULL;
-
- if (icons_dir == NULL)
- return NULL;
-
- err = netsurf_mkpath(&native_path, NULL, 2, icons_dir, name);
- if (err == NSERROR_OK) {
- /* Convert native path to URL */
- err = netsurf_path_to_nsurl(native_path, &icon_nsurl);
- free(native_path);
- }
- }
-
- if (err != NSERROR_OK) {
- warn_user(messages_get_errorcode(err), 0);
- return NULL;
- }
-
- /* Fetch the icon */
- err = hlcache_handle_retrieve(icon_nsurl, 0, 0, 0,
- ((cb != NULL) ? cb : load_icon_callback), pw, 0,
- CONTENT_IMAGE, &c);
-
- nsurl_unref(icon_nsurl);
-
- if (err != NSERROR_OK) {
- return NULL;
- }
-
- return c;
-}
void gem_set_cursor( MFORM_EX * cursor )
{