Removed an unused function (simplifyType) from the Types module

This commit is contained in:
Neil Brown 2007-10-02 14:48:09 +00:00
parent 15ecb2b178
commit c59c2ed5f6

View File

@ -486,21 +486,6 @@ isCaseableType A.Bool = True
isCaseableType t = isIntegerType t
--}}}
--{{{ simplifying and comparing types
-- | Simplify a type as far as possible: resolve data type aliases to their
-- real types, and remove non-constant array dimensions.
simplifyType :: (CSM m, Die m) => A.Type -> m A.Type
simplifyType = everywhereM (mkM simplifyType')
where
simplifyType' :: (CSM m, Die m) => A.Type -> m A.Type
simplifyType' origT@(A.Record n)
= do st <- specTypeOfName n
case st of
A.DataType _ t -> return t
A.RecordType _ _ _ -> return origT
simplifyType' t = return t
--}}}
--{{{ sizes of types
-- | The size in bytes of a data type.
data BytesInResult =