From: José Fonseca Date: Thu, 8 Mar 2012 09:29:08 +0000 (+0100) Subject: Remove findFile. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d625807f1a182a93de3cbddf3c2a02fdab9f7670;p=apitrace Remove findFile. No longer used. --- diff --git a/common/trace_resource.cpp b/common/trace_resource.cpp index 35d2b1a..206e6da 100644 --- a/common/trace_resource.cpp +++ b/common/trace_resource.cpp @@ -36,38 +36,6 @@ namespace trace { -os::String -findFile(const char *relPath, - const char *absPath, - bool verbose) -{ - os::String complete; - - /* First look in the same directory from which this process is - * running, (to support developers running a compiled program that - * has not been installed. */ - os::String process_dir = os::getProcessName(); - process_dir.trimFilename(); - - complete = process_dir; - complete.join(relPath); - - if (complete.exists()) - return complete; - - /* Second, look in the directory for installed wrappers. */ - complete = absPath; - if (complete.exists()) - return complete; - - if (verbose) { - std::cerr << "error: cannot find " << relPath << " or " << absPath << "\n"; - } - - return ""; -} - - os::String findScript(const char *scriptFilename) { diff --git a/common/trace_resource.hpp b/common/trace_resource.hpp index beea622..1d0a31b 100644 --- a/common/trace_resource.hpp +++ b/common/trace_resource.hpp @@ -36,11 +36,6 @@ namespace trace { -os::String -findFile(const char *relPath, // path relative to the current program - const char *absPath, // absolute path - bool verbose); - os::String findScript(const char *name);