summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-04-22 10:51:10 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-04-22 10:51:10 +0200
commit5fda4f2c6a046a9e24f13cb3091a5afd28aaa794 (patch)
treef660d27d3b3e2930d1338bfbb37f13c89fcbf6e0 /src
parent3bb7b940c2604399844a6608d57d134e6749a61a (diff)
Remove unused feh_strip_hostname function
Diffstat (limited to 'src')
-rw-r--r--src/feh.h1
-rw-r--r--src/imlib.c25
2 files changed, 0 insertions, 26 deletions
diff --git a/src/feh.h b/src/feh.h
index 09a19a6..dc6315f 100644
--- a/src/feh.h
+++ b/src/feh.h
@@ -139,7 +139,6 @@ void feh_display_status(char stat);
void real_loadables_mode(int loadable);
void feh_reload_image(winwidget w, int resize, int force_new);
void feh_filelist_image_remove(winwidget winwid, char do_delete);
-char *feh_strip_hostname(char *url);
void slideshow_save_image(winwidget win);
void feh_edit_inplace_orient(winwidget w, int orientation);
void feh_edit_inplace_lossless_rotate(winwidget w, int orientation);
diff --git a/src/imlib.c b/src/imlib.c
index 92c196a..d125286 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -316,31 +316,6 @@ char *feh_http_load_image(char *url)
#endif /* HAVE_LIBCURL */
-char *feh_strip_hostname(char *url)
-{
- char *ret;
- char *start;
- char *finish;
- int len;
-
- start = strchr(url, '/');
- if (!start)
- return(NULL);
-
- start += 2;
-
- finish = strchr(start, '/');
- if (!finish)
- return(NULL);
-
- len = finish - start;
-
- ret = emalloc(len + 1);
- strncpy(ret, start, len);
- ret[len] = '\0';
- return(ret);
-}
-
void feh_draw_zoom(winwidget w)
{
static Imlib_Font fn = NULL;