From 93348331bb415b1d0a5a1067fbe597f58353c5c9 Mon Sep 17 00:00:00 2001 From: Maarten Bosmans Date: Tue, 22 Mar 2011 16:02:24 +0100 Subject: Move compile-time checks around pa_run_from_build_tree to core-util To make the code cleaner and have the checks all in one place. --- src/pulsecore/core-util.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/pulsecore/core-util.c') diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 796ff57c..48231985 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -2991,9 +2991,6 @@ pa_bool_t pa_run_from_build_tree(void) { char *rp; pa_bool_t b = FALSE; - /* We abuse __OPTIMIZE__ as a check whether we are a debug build - * or not. */ - if ((rp = pa_readlink("/proc/self/exe"))) { b = pa_startswith(rp, PA_BUILDDIR); pa_xfree(rp); -- cgit