Removed unused unwrapFamInstBody from MkId
authorManuel M T Chakravarty <chak@cse.unsw.edu.au>
Tue, 10 Oct 2006 20:58:43 +0000 (20:58 +0000)
committerManuel M T Chakravarty <chak@cse.unsw.edu.au>
Tue, 10 Oct 2006 20:58:43 +0000 (20:58 +0000)
compiler/basicTypes/MkId.lhs

index 3f24a85..d927e16 100644 (file)
@@ -402,16 +402,6 @@ wrapFamInstBody tycon args result_expr
   = mkCoerce (mkSymCoercion (mkTyConApp co_con args)) result_expr
   | otherwise
   = result_expr
-
--- Apply the coercion in the opposite direction.
---
-unwrapFamInstBody :: TyCon -> [Type] -> CoreExpr -> CoreExpr
-unwrapFamInstBody tycon args result_expr
-  | Just co_con <- tyConFamilyCoercion_maybe tycon
-  = mkCoerce (mkTyConApp co_con args) result_expr
-  | otherwise
-  = result_expr
-
 \end{code}