diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-23 18:55:21 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-23 18:55:21 +0000 |
commit | 038189c02b369788f5fc32ee330b814499cec407 (patch) | |
tree | 2babecc897aecc73b8927f5273836a88ebcabc5b /host/lib/utils/paths.cpp | |
parent | ee20f8eb4f64d3fd8c34ef9cde5d125bd5a14816 (diff) | |
parent | 8673ee7235bb31f2f51ed2200952f605b0de1955 (diff) | |
download | uhd-038189c02b369788f5fc32ee330b814499cec407.tar.gz uhd-038189c02b369788f5fc32ee330b814499cec407.tar.bz2 uhd-038189c02b369788f5fc32ee330b814499cec407.zip |
Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Diffstat (limited to 'host/lib/utils/paths.cpp')
-rw-r--r-- | host/lib/utils/paths.cpp | 14 |
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); -} |