Remove an unused function
authorIustin Pop <iustin@google.com>
Mon, 16 Jul 2012 11:30:04 +0000 (13:30 +0200)
committerIustin Pop <iustin@google.com>
Thu, 19 Jul 2012 08:00:44 +0000 (10:00 +0200)
This is not used, as we need a more complex serialisation, which is
done in the saveObjectField function.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Agata Murawska <agatamurawska@google.com>

htools/Ganeti/THH.hs

index 1dc5533..21c5d17 100644 (file)
@@ -146,10 +146,6 @@ loadFn (Field { fieldIsContainer = True }) expr = [| $expr >>= readContainer |]
 loadFn (Field { fieldRead = Just readfn }) expr = [| $expr >>= $readfn |]
 loadFn _ expr = expr
 
-saveFn :: Field -> Q Exp -> Q Exp
-saveFn (Field { fieldIsContainer = True }) expr = [| showContainer $expr |]
-saveFn (Field { fieldRead = Just readfn }) expr = [| $readfn $expr |]
-saveFn _ expr = expr
 
 -- * Common field declarations