X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fresource.cc;h=57bd99b927df9fabfdee70f22faeae208c2d823b;hp=c57b527fe706e8de09e61b67ca7e81cac48b9ee0;hb=151f60a78d5e45c8d46c3e793fdefee306c6dc4c;hpb=eceb970628068ae621ef9523a669a2b66a82fd8a diff --git a/src/moof/resource.cc b/src/moof/resource.cc index c57b527..57bd99b 100644 --- a/src/moof/resource.cc +++ b/src/moof/resource.cc @@ -222,15 +222,6 @@ void resource::add_search_paths(const std::string& paths) } -bool resource::find(const std::string& path) -{ - //std::string file = stlplus::lookup(path, search_paths_, ":"); - //log_info("found file", file, "in", search_paths_); - //return !stlplus::lookup(path, search_paths_, ":").empty(); - return find_file(path) != ""; -} - - std::string resource::find_file(const std::string& name) { std::vector paths; @@ -278,11 +269,6 @@ std::string resource::find_file(const std::string& name, return find_file(name); } -FILE* resource::open_file(const std::string& path, const std::string& mode) -{ - return fopen(find_file(path).c_str(), mode.c_str()); -} - } // namespace moof