summaryrefslogtreecommitdiff
path: root/src/loading/fs.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-25 11:16:03 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-25 11:16:03 +0200
commit3309ff9fe5ea36134e8ddf11ac2c84613b569856 (patch)
treeb3eb48d444a5dee7273a76c548a64be96d76f0b9 /src/loading/fs.rs
parent362a7f2a8ac76f944efa05eabcab0960817777c5 (diff)
Slim down context
Diffstat (limited to 'src/loading/fs.rs')
-rw-r--r--src/loading/fs.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/loading/fs.rs b/src/loading/fs.rs
index 3398ebd3..23b67e34 100644
--- a/src/loading/fs.rs
+++ b/src/loading/fs.rs
@@ -1,7 +1,6 @@
use std::fs::{self, File};
use std::io;
use std::path::Path;
-use std::sync::Arc;
use memmap2::Mmap;
use same_file::Handle;
@@ -35,12 +34,6 @@ impl FsLoader {
self
}
- /// Builder-style method to wrap the loader in an [`Arc`] to make it usable
- /// with the [`Context`](crate::Context).
- pub fn wrap(self) -> Arc<Self> {
- Arc::new(self)
- }
-
/// Search for fonts in the operating system's font directories.
pub fn search_system(&mut self) {
self.search_system_impl();