Remove common_assets::path_of`

This commit is contained in:
Benoît du Garreau 2021-12-13 18:17:23 +01:00
parent aca088388b
commit 287896facd
2 changed files with 1 additions and 10 deletions

View File

@ -1,4 +1,4 @@
use std::{borrow::Cow, io, path::PathBuf};
use std::{borrow::Cow, io};
use assets_manager::{
hot_reloading::{DynUpdateSender, EventSender, FsWatcherBuilder},
@ -28,10 +28,6 @@ impl FileSystem {
override_dir,
})
}
pub fn path_of(&self, specifier: &str, ext: &str) -> PathBuf {
self.default.path_of(DirEntry::File(specifier, ext))
}
}
impl Source for FileSystem {

View File

@ -282,11 +282,6 @@ lazy_static! {
};
}
/// Returns the actual path of the specifier with the extension.
///
/// For directories, give `""` as extension.
pub fn path_of(specifier: &str, ext: &str) -> PathBuf { ASSETS.source().path_of(specifier, ext) }
#[cfg(test)]
mod tests {
use std::{ffi::OsStr, fs::File};