]> git.cworth.org Git - apitrace/commitdiff
Remove findFile.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 8 Mar 2012 09:29:08 +0000 (10:29 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 8 Mar 2012 09:29:08 +0000 (10:29 +0100)
No longer used.

common/trace_resource.cpp
common/trace_resource.hpp

index 35d2b1a73cc6a9464b3bee03720ee1cd85a4df23..206e6da157ae4eea74b50930675584265c071341 100644 (file)
 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)
 {
index beea62229d46afad1187e9b95249ac185018d3b2..1d0a31b95a291435645921620164f5ee604faf06 100644 (file)
 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);