From 0f334c9d112e3ee961eb35c09c85140fdf2aa8f6 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Mon, 22 Apr 2019 00:08:46 +0200 Subject: Remove now obsolete subst_shift --- dhall_core/src/core.rs | 43 +------------------------------------------ 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/dhall_core/src/core.rs b/dhall_core/src/core.rs index 03974eb..72b42f8 100644 --- a/dhall_core/src/core.rs +++ b/dhall_core/src/core.rs @@ -520,7 +520,7 @@ pub fn shift0( shift(delta, &V(label.clone(), 0), in_expr) } -fn shift0_multiple( +pub fn shift0_multiple( deltas: &HashMap, in_expr: &SubExpr, ) -> SubExpr { @@ -546,44 +546,3 @@ fn shift0_multiple_inner( ), } } - -/// Substitute all occurrences of a variable with an expression, and -/// removes the variable from the environment by shifting the indices -/// of other variables appropriately. -/// -/// ```text -/// subst_shift(x, v, e) = ↑(-1, x, e[x := ↑(1, x, v)]) -/// ``` -/// -pub fn subst_shift( - var: &V