From 5bfaf10de597af504e6d2784309e533b09a6451c Mon Sep 17 00:00:00 2001 From: hallgren Date: Fri, 28 Aug 2015 13:59:43 +0000 Subject: Comment out some dead code found with -fwarn-unused-binds Also fixed some warnings and tightened some imports --- src/compiler/GF/Compile/GrammarToPGF.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/compiler/GF/Compile/GrammarToPGF.hs') diff --git a/src/compiler/GF/Compile/GrammarToPGF.hs b/src/compiler/GF/Compile/GrammarToPGF.hs index 39202de4c..cd2e6b8ce 100644 --- a/src/compiler/GF/Compile/GrammarToPGF.hs +++ b/src/compiler/GF/Compile/GrammarToPGF.hs @@ -177,8 +177,8 @@ genCncCats gr am cm cdefs = (index',cats) = mkCncCats index cdefs in (index', (i2i id,cc) : cats) | otherwise = - let cc@(C.CncCat s e _) = pgfCncCat gr lincat index - (index',cats) = mkCncCats (e+1) cdefs + let cc@(C.CncCat _s e _) = pgfCncCat gr lincat index + (index',cats) = mkCncCats (e+1) cdefs in (index', (i2i id,cc) : cats) mkCncCats index (_ :cdefs) = mkCncCats index cdefs @@ -303,6 +303,6 @@ genPrintNames cdefs = flatten (Alts x _) = flatten x flatten (C x y) = flatten x +++ flatten y -mkArray lst = listArray (0,length lst-1) lst +--mkArray lst = listArray (0,length lst-1) lst mkMapArray map = array (0,Map.size map-1) [(v,k) | (k,v) <- Map.toList map] mkSetArray set = listArray (0,Set.size set-1) [v | v <- Set.toList set] -- cgit v1.2.3