mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove common_assets::path_of`
This commit is contained in:
parent
aca088388b
commit
287896facd
@ -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 {
|
||||
|
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user