From 1cbc04100dbeaf22865caa18d17678216bc038e0 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Thu, 15 Oct 2015 09:43:27 -0400 Subject: [PATCH] Remove Free hashing. --- prototype/Doubt/Free.swift | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/prototype/Doubt/Free.swift b/prototype/Doubt/Free.swift index afb4238e9..cd8cbe510 100644 --- a/prototype/Doubt/Free.swift +++ b/prototype/Doubt/Free.swift @@ -144,22 +144,6 @@ public func == (left: Free, right: Free } -// MARK: - Hashing - -extension Free { - public func hash(ifPure ifPure: B -> Hash, ifRoll: A -> Hash) -> Hash { - return analysis(ifPure: ifPure, ifRoll: { $0.hash(ifLeaf: ifRoll, ifRecur: { $0.hash(ifPure: ifPure, ifRoll: ifRoll) }) }) - } -} - - -extension Free where A: Hashable, B: Hashable { - public var hash: Hash { - return hash(ifPure: Hash.init, ifRoll: Hash.init) - } -} - - // MARK: - JSON extension Free {