diff --git a/ghcidOutput b/ghcidOutput index ae0c9b3c8..08836bd36 100644 --- a/ghcidOutput +++ b/ghcidOutput @@ -1,5 +1 @@ -/home/justin/Haskell/loop/src/Dodge/DisplayInventory.hs:214:5-9: warning: [-Wunused-local-binds] - Defined but not used: ‘scurs’ - | -214 | scurs = do - | ^^^^^ +All good (594 modules, at 09:55:51) diff --git a/src/Dodge/Data/SelectionList.hs b/src/Dodge/Data/SelectionList.hs index 62a2533ac..22a0824b6 100644 --- a/src/Dodge/Data/SelectionList.hs +++ b/src/Dodge/Data/SelectionList.hs @@ -34,7 +34,6 @@ data SectionCursor = SectionCursor data SelectionSection a = SelectionSection { _ssItems :: IntMap (SelectionItem a) --- , _ssCursor :: Maybe SectionCursor , _ssMinSize :: Int , _ssOffset :: Int , _ssShownItems :: [Picture] diff --git a/src/Dodge/Default/World.hs b/src/Dodge/Default/World.hs index 9d68d2af1..5211ae754 100644 --- a/src/Dodge/Default/World.hs +++ b/src/Dodge/Default/World.hs @@ -187,7 +187,6 @@ defaultSS :: SelectionSection a defaultSS = SelectionSection { _ssItems = mempty --- , _ssCursor = Nothing , _ssMinSize = 10 , _ssOffset = 0 , _ssShownItems = [] diff --git a/src/Dodge/DisplayInventory.hs b/src/Dodge/DisplayInventory.hs index 951f2e4a4..b2ecf232e 100644 --- a/src/Dodge/DisplayInventory.hs +++ b/src/Dodge/DisplayInventory.hs @@ -206,18 +206,10 @@ updateSection :: updateSection sis mcsel availablelines ss = ss & ssItems .~ sis --- & ssCursor .~ scurs & ssOffset .~ offset & ssShownItems .~ shownitems where oldoffset = ss ^. ssOffset - scurs = do - csel <- mcsel - (_, si) <- IM.lookupGE csel sis -- this is not right? - let cpos = sum (fmap _siHeight . fst . IM.split csel $ sis) - csize = length $ _siPictures si - ccolor = _siColor si - return $ SectionCursor (cpos - offset) csize ccolor nocursoroffset = if length allstrings - oldoffset <= availablelines then max 0 (length allstrings - availablelines) @@ -290,7 +282,6 @@ enterCombineInv cfig w = filtsection = SelectionSection { _ssItems = mempty --- , _ssCursor = Nothing , _ssMinSize = 0 , _ssOffset = 0 , _ssShownItems = mempty @@ -304,9 +295,6 @@ enterCombineInv cfig w = availablelines SelectionSection { _ssItems = cm --- , _ssCursor = do --- (_, si) <- IM.lookupMin cm --- return $ SectionCursor 0 (_siHeight si) (_siColor si) , _ssMinSize = 5 , _ssOffset = 0 , _ssShownItems = mempty