From dce5d027dbc32978398945c647f4efb32b2636ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dato=20Sim=C3=B3?= <dato@google.com> Date: Wed, 24 Oct 2012 15:28:57 +0100 Subject: [PATCH] THH.hs: delete isOptional, no longer used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The isOptional function is no longer used after a150585 (βConvert opcode TH code to the use of Field typeβ). Signed-off-by: Dato SimΓ³ <dato@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- htools/Ganeti/THH.hs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/htools/Ganeti/THH.hs b/htools/Ganeti/THH.hs index bf9802eab..19d555dd3 100644 --- a/htools/Ganeti/THH.hs +++ b/htools/Ganeti/THH.hs @@ -503,13 +503,6 @@ genOpCode name cons = do (loadsig, loadfn) <- genLoadOpCode cons return [declD, loadsig, loadfn, savesig, savefn] --- | Checks whether a given parameter is options. --- --- This requires that it's a 'Maybe'. -isOptional :: Type -> Bool -isOptional (AppT (ConT dt) _) | dt == ''Maybe = True -isOptional _ = False - -- | Generates the \"save\" clause for an entire opcode constructor. -- -- This matches the opcode with variables named the same as the -- GitLab