summaryrefslogtreecommitdiff
path: root/src/loading
diff options
context:
space:
mode:
Diffstat (limited to 'src/loading')
-rw-r--r--src/loading/fs.rs7
-rw-r--r--src/loading/mem.rs7
2 files changed, 0 insertions, 14 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();
diff --git a/src/loading/mem.rs b/src/loading/mem.rs
index d4c0e7e4..662de100 100644
--- a/src/loading/mem.rs
+++ b/src/loading/mem.rs
@@ -2,7 +2,6 @@ use std::borrow::Cow;
use std::collections::HashMap;
use std::io;
use std::path::{Path, PathBuf};
-use std::sync::Arc;
use super::{FileHash, Loader};
use crate::font::FaceInfo;
@@ -31,12 +30,6 @@ impl MemLoader {
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)
- }
-
/// Insert a path-file mapping. If the data forms a font, then that font
/// will be available for layouting.
///