summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-16 14:33:32 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-16 14:40:02 +0200
commitba6b91e2ee9dfa729d21879f27773de7c7731cfe (patch)
tree1ad97aba9a51582d245fc34cc6b3a94be762e2b7 /src/lib.rs
parent7e6e7e928c5208cc26b62774e3fbc8dda82f10b6 (diff)
Editable source files
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ce753f86..41ad1d16 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -50,7 +50,7 @@ pub mod util;
use std::rc::Rc;
use crate::diag::TypResult;
-use crate::eval::{ModuleCache, Scope};
+use crate::eval::Scope;
use crate::exec::State;
use crate::font::FontStore;
use crate::image::ImageStore;
@@ -70,8 +70,6 @@ pub struct Context {
pub fonts: FontStore,
/// Stores decoded images.
pub images: ImageStore,
- /// Caches evaluated modules.
- pub modules: ModuleCache,
/// Caches layouting artifacts.
#[cfg(feature = "layout-cache")]
pub layouts: LayoutCache,
@@ -144,7 +142,6 @@ impl ContextBuilder {
fonts: FontStore::new(Rc::clone(&loader)),
images: ImageStore::new(Rc::clone(&loader)),
loader,
- modules: ModuleCache::new(),
#[cfg(feature = "layout-cache")]
layouts: LayoutCache::new(),
std: self.std.unwrap_or(library::new()),