diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 10:33:52 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 10:34:42 +0100 |
commit | 63d51144092e0c51e65221f1544d7aef2950eec9 (patch) | |
tree | 40ea38e8639adc2d7b20d604f8717b78daeeefc3 /ida.c | |
parent | 4f83229c9b7ff9d267968a85f8f7c5ef3d18e11d (diff) | |
download | fbida-63d51144092e0c51e65221f1544d7aef2950eec9.tar.gz |
drop curl support
Diffstat (limited to 'ida.c')
-rw-r--r-- | ida.c | 20 |
1 files changed, 4 insertions, 16 deletions
@@ -51,7 +51,6 @@ #include "xdnd.h" #include "selections.h" #include "sane.h" -#include "curl.h" #include "idaconfig.h" /* ---------------------------------------------------------------------- */ @@ -907,9 +906,6 @@ void new_file(char *name, int complain) struct stat st; int n; - if (curl_is_url(name)) - goto load; - if (0 == strncasecmp(name,"file:",5)) name += 5; if (-1 == stat(name,&st)) { @@ -922,16 +918,13 @@ void new_file(char *name, int complain) browser_window(name); break; case S_IFREG: - goto load; + n = list_append(name); + list_update(); + cpage = 0; + load_file(n,cpage); break; } return; - - load: - n = list_append(name); - list_update(); - cpage = 0; - load_file(n,cpage); } static void @@ -1878,11 +1871,6 @@ main(int argc, char *argv[]) load_stdin(); } else if (argc > 1) { for (files = 0, i = 1; i < argc; i++) { - if (curl_is_url(argv[i])) { - list_append(argv[i]); - files++; - continue; - } if (-1 == stat(argv[i],&st)) { if (debug) fprintf(stderr,"stat %s: %s\n",argv[i],strerror(errno)); |