--- rxvt-unicode/src/misc.C 2006/01/21 23:50:33 1.37 +++ rxvt-unicode/src/misc.C 2006/01/24 19:40:12 1.38 @@ -431,8 +431,6 @@ * file searching */ -/* #define DEBUG_SEARCH_PATH */ - #ifdef XPM_BACKGROUND /* * search for FILE in the current working directory, and within the @@ -440,7 +438,7 @@ * * FILE is either semi-colon or zero terminated */ -char * +char * rxvt_File_search_path (const char *pathlist, const char *file, const char *ext) NOTHROW { int maxpath, len; @@ -456,12 +454,6 @@ else len = strlen (file); -#ifdef DEBUG_SEARCH_PATH - getcwd (name, sizeof (name)); - fprintf (stderr, "pwd: \"%s\"\n", name); - fprintf (stderr, "find: \"%.*s\"\n", len, file); -#endif - /* leave room for an extra '/' and trailing '\0' */ maxpath = sizeof (name) - (len + (ext ? strlen (ext) : 0) + 2); if (maxpath <= 0) @@ -512,7 +504,7 @@ return NULL; } -char * +char * rxvt_File_find (const char *file, const char *ext, const char *path) NOTHROW { char *f; @@ -522,11 +514,6 @@ f = rxvt_File_search_path (path, file, ext); -#ifdef DEBUG_SEARCH_PATH - if (f) - fprintf (stderr, "found: \"%s\"\n", f); -#endif - return f; } #endif