mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-18 07:32:51 -06:00
Comment out some dead code found with -fwarn-unused-binds
Also fixed some warnings and tightened some imports
This commit is contained in:
@@ -119,22 +119,22 @@ sizeInfo i = case i of
|
||||
msize mt = case mt of
|
||||
Just (L _ t) -> sizeTerm t
|
||||
_ -> 0
|
||||
|
||||
{-
|
||||
-- the size of a module
|
||||
sizeModule :: SourceModule -> Int
|
||||
sizeModule = fst . sizesModule
|
||||
|
||||
-}
|
||||
sizesModule :: SourceModule -> (Int, [(Ident,Int)])
|
||||
sizesModule (_,m) =
|
||||
let
|
||||
js = Map.toList (jments m)
|
||||
tb = [(i,k) | (i,j) <- js, let k = sizeInfo j, k >= 0]
|
||||
in (length tb + sum (map snd tb),tb)
|
||||
|
||||
{-
|
||||
-- the size of a grammar
|
||||
sizeGrammar :: Grammar -> Int
|
||||
sizeGrammar = fst . sizesGrammar
|
||||
|
||||
-}
|
||||
sizesGrammar :: Grammar -> (Int,[(ModuleName,(Int,[(Ident,Int)]))])
|
||||
sizesGrammar g =
|
||||
let
|
||||
|
||||
Reference in New Issue
Block a user