summaryrefslogtreecommitdiff
path: root/src/runtime/haskell/PGF/Check.hs
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2010-05-26 09:37:32 +0000
committerkrasimir <krasimir@chalmers.se>2010-05-26 09:37:32 +0000
commit6eda1118fcc497fda0939f02502569caf8625c7c (patch)
treed5c208f79e701e48aa85a2bf08d995f7b28e9619 /src/runtime/haskell/PGF/Check.hs
parentb1441f2807a44c63a50382db93f49601550a95a8 (diff)
since now we don't do common subexpression elimination for PGF we could simplify the PMCFG generation
Diffstat (limited to 'src/runtime/haskell/PGF/Check.hs')
-rw-r--r--src/runtime/haskell/PGF/Check.hs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/runtime/haskell/PGF/Check.hs b/src/runtime/haskell/PGF/Check.hs
index 8f3b82eb7..94713a745 100644
--- a/src/runtime/haskell/PGF/Check.hs
+++ b/src/runtime/haskell/PGF/Check.hs
@@ -137,14 +137,6 @@ lintype pgf lang fun = case typeSkeleton (lookFun pgf fun) of
vlinc (i,c) = case linc c of
R ts -> R (ts ++ replicate i str)
-inline :: PGFSig -> CId -> Term -> Term
-inline pgf lang t = case t of
- F c -> inl $ look c
- _ -> composSafeOp inl t
- where
- inl = inline pgf lang
- look = lookLin pgf lang
-
composOp :: Monad m => (Term -> m Term) -> Term -> m Term
composOp f trm = case trm of
R ts -> liftM R $ mapM f ts