From d625807f1a182a93de3cbddf3c2a02fdab9f7670 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Jos=C3=A9=20Fonseca?= <jose.r.fonseca@gmail.com>
Date: Thu, 8 Mar 2012 10:29:08 +0100
Subject: [PATCH] Remove findFile.

No longer used.
---
 common/trace_resource.cpp | 32 --------------------------------
 common/trace_resource.hpp |  5 -----
 2 files changed, 37 deletions(-)

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);
 
-- 
2.45.2