From 38bea8c136bf63a6e13dceb124db5da0bb786296 Mon Sep 17 00:00:00 2001 From: Timo Korvola Date: Tue, 27 Mar 2018 17:16:57 +0300 Subject: [PATCH] Remove getexepath. getexepath was unportable but fortunately unused. --- src/sdl/sf_util.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/sdl/sf_util.c b/src/sdl/sf_util.c index 017129e..9644a04 100644 --- a/src/sdl/sf_util.c +++ b/src/sdl/sf_util.c @@ -951,21 +951,6 @@ int sf_pkread( FILE *f, int foffs, void ** out, int *size) #include #endif -static char * getexepath( char *buf){ -#ifdef WIN32 - buf[0] = 0; - GetModuleFileName(NULL,buf,262); -#else - char baf[80]; - int n; - sprintf(baf,"/proc/%d/exe",getpid()); - n = readlink(baf,buf,262); - if (n < 0) n = 0; - buf[n] = 0; -#endif - return buf; - } - #ifndef WIN32 #define _stat stat #endif -- 2.34.1