From e2a794e3463f07789665766110d939389b92b5a6 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 11 Nov 2011 18:52:04 +0100 Subject: [PATCH] test: remove dead code --- test/runner-unix.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/test/runner-unix.c b/test/runner-unix.c index 6033d642..3c78bb50 100644 --- a/test/runner-unix.c +++ b/test/runner-unix.c @@ -37,35 +37,13 @@ #include #include -#ifdef __APPLE__ -#include /* _NSGetExecutablePath */ - -static void get_executable_path() { - uint32_t bufsize = sizeof(executable_path); - _NSGetExecutablePath(executable_path, &bufsize); -} -#endif - -#ifdef __linux__ -static void get_executable_path() { - if (!executable_path[0]) { - readlink("/proc/self/exe", executable_path, PATHMAX - 1); - } -} -#endif - /* Do platform-specific initialization. */ void platform_init(int argc, char **argv) { /* Disable stdio output buffering. */ setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0); -#ifdef get_executable_path - get_executable_path(); -#else strcpy(executable_path, argv[0]); -#endif - signal(SIGPIPE, SIG_IGN); }