Remove getexepath.
authorTimo Korvola <tkorvola@iki.fi>
Tue, 27 Mar 2018 14:16:57 +0000 (17:16 +0300)
committerTimo Korvola <tkorvola@iki.fi>
Tue, 27 Mar 2018 19:05:37 +0000 (22:05 +0300)
getexepath was unportable but fortunately unused.

src/sdl/sf_util.c

index 017129e5b9e268cb328f96e23ca2887e13e26a75..9644a0447b8404649580f6cf4e1d3ca061c37e0f 100644 (file)
@@ -951,21 +951,6 @@ int sf_pkread( FILE *f, int foffs,  void ** out, int *size)
 #include <unistd.h>
 #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