From 7dd2d64073b662acccb39601591c754279385308 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Thu, 30 Jan 2020 11:24:48 +0000 Subject: No need for the current env to tck Foo/build closures --- dhall/src/semantics/tck/env.rs | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'dhall/src/semantics/tck') diff --git a/dhall/src/semantics/tck/env.rs b/dhall/src/semantics/tck/env.rs index 1276a48..d4cc37d 100644 --- a/dhall/src/semantics/tck/env.rs +++ b/dhall/src/semantics/tck/env.rs @@ -45,11 +45,6 @@ impl NameEnv { pub fn new() -> Self { NameEnv { names: Vec::new() } } - pub fn from_binders(names: impl Iterator) -> Self { - NameEnv { - names: names.collect(), - } - } pub fn as_varenv(&self) -> VarEnv { VarEnv { size: self.names.len(), @@ -99,14 +94,6 @@ impl TyEnv { items: NzEnv::new(), } } - pub fn from_nzenv_alpha(items: &NzEnv) -> Self { - TyEnv { - names: NameEnv::from_binders( - std::iter::repeat("_".into()).take(items.size()), - ), - items: items.clone(), - } - } pub fn as_varenv(&self) -> VarEnv { self.names.as_varenv() } -- cgit v1.2.3