From 7ac061b5ddf15ffe3fc4f36b64138b7431429758 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Thu, 9 May 2019 22:27:17 +0200 Subject: Rewrite Deserialize trait around new Value and Type --- dhall/src/phase/mod.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'dhall/src/phase') diff --git a/dhall/src/phase/mod.rs b/dhall/src/phase/mod.rs index 5262a27..d7cec67 100644 --- a/dhall/src/phase/mod.rs +++ b/dhall/src/phase/mod.rs @@ -50,7 +50,7 @@ pub(crate) enum Typed { pub(crate) struct Normalized(pub(crate) Typed); #[derive(Debug, Clone, PartialEq, Eq)] -pub struct Type(pub(crate) Typed); +pub(crate) struct Type(pub(crate) Typed); impl Parsed { pub fn parse_file(f: &Path) -> Result { @@ -202,9 +202,6 @@ impl Type { } impl Normalized { - pub(crate) fn to_expr(&self) -> NormalizedSubExpr { - self.0.to_expr() - } #[allow(dead_code)] pub(crate) fn to_expr_alpha(&self) -> NormalizedSubExpr { self.0.to_expr_alpha() @@ -212,9 +209,6 @@ impl Normalized { pub(crate) fn to_value(&self) -> Value { self.0.to_value() } - pub(crate) fn to_type(&self) -> Type { - self.0.to_type() - } pub(crate) fn into_typed(self) -> Typed { self.0 } -- cgit v1.2.3