Skip to content

Commit 18c0097

Browse files
warning cleanup 2
1 parent a689f9d commit 18c0097

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/Potato/Flow/Controller/Goat.hs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ import Potato.Flow.OwlState
4949
import Potato.Flow.OwlWorkspace
5050
import Potato.Flow.Render
5151
import Potato.Flow.Methods.SEltMethods
52-
import Potato.Flow.Serialization.Snake
5352
import Potato.Flow.Types
5453
import Potato.Flow.Preview
5554
import Potato.Flow.Methods.LlamaWorks
@@ -324,7 +323,7 @@ goat_setFocusedArea gfa goatState = r where
324323
then let
325324
goatState_afterAction = case pHandleKeyboard (_goatState_layersHandler goatState) potatoHandlerInput (KeyboardData KeyboardKey_Return []) of
326325
Nothing -> noactionneeded
327-
Just pho -> traceShow "press enter" $ goat_processLayersHandlerOutput pho goatstatewithnewfocus
326+
Just pho -> goat_processLayersHandlerOutput pho goatstatewithnewfocus
328327
in assert (_goatState_focusedArea goatState == GoatFocusedArea_Layers) $ goatState_afterAction
329328
else noactionneeded
330329

@@ -394,7 +393,7 @@ endoGoatCmdMouse mouseData goatState = r where
394393

395394

396395
endoGoatCmdKeyboard :: KeyboardData -> GoatState -> GoatState
397-
endoGoatCmdKeyboard kbd' goatState = r where
396+
endoGoatCmdKeyboard kbd' goatState = r_d0 where
398397
-- TODO you need to do reset logic for this (basically, reset it anytime there was a non-keyboard event)
399398
last_unbrokenInput = _goatState_unbrokenInput goatState
400399
next_unbrokenInput = case kbd' of
@@ -407,7 +406,7 @@ endoGoatCmdKeyboard kbd' goatState = r where
407406
-- TODO rename to canvasHandler
408407
handler = _goatState_handler goatState_withKeyboard
409408

410-
r = case mkbd of
409+
r_d0 = case mkbd of
411410
Nothing -> goatState_withKeyboard
412411
-- special case, treat escape cancel mouse drag as a mouse input
413412
Just (KeyboardData KeyboardKey_Esc _) | mouseDrag_isActive (_goatState_mouseDrag goatState_withKeyboard) -> r where
@@ -506,7 +505,7 @@ goat_renderCanvas_move rc@RenderContext {..} pan sr = r where
506505
else (rc, False)
507506

508507

509-
goat_renderCanvas_update :: (HasCallStack) => RenderContext -> NeedsUpdateSet -> SuperOwlChanges -> RenderContext
508+
goat_renderCanvas_update :: RenderContext -> NeedsUpdateSet -> SuperOwlChanges -> RenderContext
510509
goat_renderCanvas_update rc needsupdateaabbs cslmap = r where
511510
r = if IM.null cslmap
512511
then rc
@@ -581,7 +580,7 @@ goat_rerenderAfterMove goatState = r where
581580
, _goatState_renderedSelection = _renderContext_renderedCanvasRegion rc_afterselection
582581
}
583582

584-
computeCanvasSelection :: (HasCallStack) => GoatState -> CanvasSelection
583+
computeCanvasSelection :: GoatState -> CanvasSelection
585584
computeCanvasSelection goatState = r where
586585
pfs = goatState_pFState goatState
587586
filterHiddenOrLocked sowl = not $ layerMetaMap_isInheritHiddenOrLocked (_owlPFState_owlTree pfs) (_superOwl_id sowl) (_layersState_meta (_goatState_layersState goatState))

src/Potato/Flow/Controller/Handler.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ data HandlerOutputAction =
3131
| HOA_Pan XY
3232
| HOA_Select Bool Selection
3333
| HOA_Layers LayersState SuperOwlChanges
34-
| HOA_LayersScroll Int
3534
| HOA_Preview Preview.Preview
3635
deriving (Show)
3736

0 commit comments

Comments
 (0)