Remove StorageBackend::build()

This commit is contained in:
Matthias Beyer 2015-12-02 12:28:41 +01:00
parent 731d13e0ba
commit 9231049e30

View file

@ -52,13 +52,6 @@ impl StorageBackend {
}) })
} }
fn build<M: Module>(rt: &Runtime, m: &M) -> StorageBackend {
let path = rt.get_rtp() + m.name() + "/store";
// TODO: Don't use "/store" but value from configuration
debug!("Building StorageBackend for {}", path);
StorageBackend::new(path)
}
fn get_file_ids(&self, m: &Module) -> Option<Vec<FileID>> { fn get_file_ids(&self, m: &Module) -> Option<Vec<FileID>> {
let list = glob(&self.prefix_of_files_for_module(m)[..]); let list = glob(&self.prefix_of_files_for_module(m)[..]);