From ebb6628a0143a91189cc209487e6588ab3e9fa99 Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Sat, 20 Dec 2008 10:02:00 +0000 Subject: 2.5 BLI_blenlib cleanup DONE: * moved almost all declarations from BLI_blenlib.h into their own proper header files. * BLI_blenlib.h still includes all the declarations for convenience and to avoid changes in existing code * split util.c into several files, where it wasn't done already * DynamicList -> dynamiclist, * ListBase -> listbase, * String utility functions -> string.c * removed a few unused macros and functions, if they're needed back, they're still in svn ;) TODO: * btempdir global * further cleanup in the code of the different modules (especially util.c) --- source/blender/blenloader/intern/writefile.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index eb915bb0d00..ab5a6745686 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -2201,27 +2201,6 @@ int BLO_write_file_mem(Main *mainvar, MemFile *compare, MemFile *current, int wr #define PATHSEPERATOR "/" #endif -char *get_install_dir(void) { - extern char bprogname[]; - char *tmpname = BLI_strdup(bprogname); - char *cut; - -#ifdef __APPLE__ - cut = strstr(tmpname, ".app"); - if (cut) cut[0] = 0; -#endif - - cut = BLI_last_slash(tmpname); - - if (cut) { - cut[0] = 0; - return tmpname; - } else { - MEM_freeN(tmpname); - return NULL; - } -} - static char *get_runtime_path(char *exename) { char *installpath= get_install_dir(); -- cgit v1.2.3