X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fresource.hh;h=9d991053c21b841be3ebc164e6b538244c80bb82;hp=eba4b3f2871d59e55a81b661e98776a947b97183;hb=151f60a78d5e45c8d46c3e793fdefee306c6dc4c;hpb=eceb970628068ae621ef9523a669a2b66a82fd8a diff --git a/src/moof/resource.hh b/src/moof/resource.hh index eba4b3f..9d99105 100644 --- a/src/moof/resource.hh +++ b/src/moof/resource.hh @@ -19,7 +19,6 @@ #include "config.h" -#include #include #include #include @@ -62,28 +61,12 @@ public: * \param path The name of the resource to find. Upon successful * return, this is changed to an absolute path to the resource. * \return True if a path to a resource was found, false otherwise. - * XXX this is legacy */ - static bool find(const std::string& file); - static std::string find_file(const std::string& name); static std::string find_file(const std::string& name, const std::string& ext); - /** - * Get the path to a resource of a given name and open it if a resource - * was found. - * \param path The name of the resource to find. Upon successful - * return, this is changed to an absolute path to the resource. - * \param mode The open mode. - * \return The FILE* if the resource was found, 0 otherwise. - * XXX deprecated - */ - static FILE* open_file(const std::string& path, - const std::string& mode = "rb"); - - /** * Register a type with the extension of files which this type can * load. If any type has already been registered with the given file @@ -95,7 +78,6 @@ public: const std::string& prefix = "") { loader_ptr loader(new specific_loader(prefix)); - printf("registered type with prefix %s", loader->prefix().c_str()); call_registry(extension, loader, set); }