From 06a3f84e5032b93052f1eb95946d5f51aa9368f2 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 11 May 2014 16:54:36 +0100 Subject: remove amiga specific mkpath wrapper as registration has been fixed and the generic netsurf)mkpath is available --- amiga/gui.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'amiga') diff --git a/amiga/gui.c b/amiga/gui.c index 7ea2334a1..ddca092b2 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -298,18 +298,6 @@ static nserror amiga_vmkpath(char **str, size_t *size, size_t nelm, va_list ap) return NSERROR_OK; } -static nserror amiga_mkpath(char **str, size_t *size, size_t nelm, ...) -{ - va_list ap; - nserror ret; - - va_start(ap, nelm); - ret = amiga_vmkpath(str, size, nelm, ap); - va_end(ap); - - return ret; -} - /** * Get the basename of a file using posix path handling. * @@ -399,7 +387,7 @@ bool ami_gui_map_filename(char **remapped, const char *path, const char *file, c char *realfname; bool found = false; - amiga_mkpath(&mapfile, &mapfile_size, 2, path, map); + netsurf_mkpath(&mapfile, &mapfile_size, 2, path, map); if(mapfile == NULL) return false; @@ -442,7 +430,7 @@ bool ami_gui_check_resource(char *fullpath, const char *file) size_t fullpath_len = 1024; ami_gui_map_filename(&remapped, fullpath, file, "Resource.map"); - amiga_mkpath(&fullpath, &fullpath_len, 2, fullpath, remapped); + netsurf_mkpath(&fullpath, &fullpath_len, 2, fullpath, remapped); LOG(("Checking for %s", fullpath)); @@ -493,7 +481,7 @@ bool ami_locate_resource(char *fullpath, const char *file) { ami_gui_map_filename(&remapped, "PROGDIR:Resources", locale->loc_PrefLanguages[i], "LangNames"); - amiga_mkpath(&fullpath, &fullpath_len, 2, fullpath, remapped); + netsurf_mkpath(&fullpath, &fullpath_len, 2, fullpath, remapped); found = ami_gui_check_resource(fullpath, file); } -- cgit v1.2.3