From 5f0d69671b44ba1dff6becb9ebc7f6e74241e3e2 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Fri, 16 Aug 2019 18:14:55 +0200 Subject: Remove dead code --- dhall/src/core/context.rs | 31 ----------------------- dhall/src/core/thunk.rs | 59 +++++++++++++------------------------------- dhall/src/core/value.rs | 5 +++- dhall/src/core/var.rs | 6 ----- dhall/src/phase/mod.rs | 8 ------ dhall/src/phase/normalize.rs | 22 +---------------- dhall/src/phase/typecheck.rs | 10 ++++---- 7 files changed, 27 insertions(+), 114 deletions(-) (limited to 'dhall/src') diff --git a/dhall/src/core/context.rs b/dhall/src/core/context.rs index 9230a2e..3c07c1c 100644 --- a/dhall/src/core/context.rs +++ b/dhall/src/core/context.rs @@ -18,9 +18,6 @@ enum CtxItem { #[derive(Debug, Clone)] struct Context(Rc)>>); -#[derive(Debug, Clone)] -pub(crate) struct NormalizationContext(Context<()>); - #[derive(Debug, Clone)] pub(crate) struct TypecheckContext(Context); @@ -117,22 +114,6 @@ impl Context { } } -impl NormalizationContext { - pub fn new() -> Self { - NormalizationContext(Context::new()) - } - pub fn skip(&self, x: &Label) -> Self { - NormalizationContext(self.0.insert_kept(x, ())) - } - pub fn lookup(&self, var: &V