summaryrefslogtreecommitdiffstats
path: root/host/lib/utils/paths.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-19 17:15:30 -0700
committerJosh Blum <josh@joshknows.com>2010-08-19 17:15:30 -0700
commita32c3217cb703430f417cf5a3b816f6fd0f70ed3 (patch)
treeb50b370c4ce9a50c1218e1f5b2ff773840fb2d2f /host/lib/utils/paths.cpp
parent0f2bf7bf709f417e0ef5a0860e18b190f740fd1b (diff)
parentd99e22971975e9b5bfb966741684963be8f049f6 (diff)
downloaduhd-a32c3217cb703430f417cf5a3b816f6fd0f70ed3.tar.gz
uhd-a32c3217cb703430f417cf5a3b816f6fd0f70ed3.tar.bz2
uhd-a32c3217cb703430f417cf5a3b816f6fd0f70ed3.zip
Merge branch 'master' into usrp1
Diffstat (limited to 'host/lib/utils/paths.cpp')
-rw-r--r--host/lib/utils/paths.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/host/lib/utils/paths.cpp b/host/lib/utils/paths.cpp
index 6ad12d3cc..9e9525caf 100644
--- a/host/lib/utils/paths.cpp
+++ b/host/lib/utils/paths.cpp
@@ -85,17 +85,3 @@ std::vector<fs::path> get_module_paths(void){
paths.push_back(fs::path(INSTALLER_PKG_DATA_DIR) / "modules");
return paths;
}
-
-/***********************************************************************
- * Find a image in the image paths
- **********************************************************************/
-std::string find_image_path(const std::string &image_name){
- if (fs::exists(image_name)){
- return fs::system_complete(image_name).file_string();
- }
- BOOST_FOREACH(const fs::path &path, get_image_paths()){
- fs::path image_path = path / image_name;
- if (fs::exists(image_path)) return image_path.file_string();
- }
- throw std::runtime_error("Could not find path for image: " + image_name);
-}