Skip to content

Commit be23c16

Browse files
warning cleanup 4
1 parent e177787 commit be23c16

File tree

7 files changed

+3
-17
lines changed

7 files changed

+3
-17
lines changed

src/Potato/Flow/Controller/Handler.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@ import Potato.Flow.Math
1313
import Potato.Flow.Owl
1414
import Potato.Flow.Render
1515
import Potato.Flow.OwlState
16-
import Potato.Flow.OwlWorkspace
1716
import Potato.Flow.Serialization.Snake
1817
import qualified Potato.Flow.Preview as Preview
1918

2019
import qualified Potato.Data.Text.Zipper as TZ
2120

2221
import Data.Default
23-
import qualified Data.IntMap as IM
2422
import qualified Data.Sequence as Seq
2523
import qualified Data.Text as T
2624
import qualified Text.Show

src/Potato/Flow/Controller/Manipulator/Line.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import Potato.Flow.Methods.LineDrawer
2323
import Potato.Flow.Owl
2424
import Potato.Flow.OwlItem
2525
import Potato.Flow.OwlState
26-
import Potato.Flow.OwlWorkspace
2726
import Potato.Flow.Serialization.Snake
2827
import Potato.Flow.Methods.LlamaWorks
2928
import Potato.Flow.Preview
@@ -457,6 +456,7 @@ instance PotatoHandler AutoLineEndPointHandler where
457456

458457

459458
-- TODO finish
459+
{-
460460
adjustLineLabelPositionsAfterModifyingOrAddingMidpoint ::
461461
(HasOwlTree a)
462462
=> a
@@ -484,7 +484,7 @@ adjustLineLabelPositionsAfterModifyingOrAddingMidpoint ot old new mempindex = r
484484
-- adjust distance by the change in ratio
485485
486486
r = undefined
487-
487+
-}
488488

489489

490490

src/Potato/Flow/Controller/Manipulator/Pan.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ instance PotatoHandler PanHandler where
3838
MouseDragState_Up -> case _panHandler_maybePrevHandler of
3939
Nothing -> Just $ SomePotatoHandler (def :: PanHandler)
4040
Just x -> Just x
41-
_ -> error "not posible"
4241
, _potatoHandlerOutput_action = HOA_Pan (delta - _panHandler_panDelta)
4342
--, _potatoHandlerOutput_pan = trace (show x <> " delta " <> show delta <> " pan " <> show _panHandler_panDelta <> " from " <> show _mouseDrag_from <> " to " <> show _mouseDrag_to) $ Just (delta - _panHandler_panDelta)
4443
} where delta = _mouseDrag_to - _mouseDrag_from

src/Potato/Flow/Controller/Manipulator/TextArea.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import Potato.Flow.Controller.Manipulator.Common
1616
import Potato.Flow.Llama
1717
import Potato.Flow.Math
1818
import Potato.Flow.Owl
19-
import Potato.Flow.OwlWorkspace
2019
import Potato.Flow.Serialization.Snake
2120
import Potato.Flow.Types
2221
import Potato.Flow.Preview

src/Potato/Flow/Methods/LlamaWorks.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,15 @@ module Potato.Flow.Methods.LlamaWorks where
77

88
import Relude
99

10-
import Potato.Flow.Math
1110
import Potato.Flow.Owl
1211
import Potato.Flow.OwlItem
13-
import Potato.Flow.Attachments
14-
import Potato.Flow.OwlWorkspace
1512
import Potato.Flow.OwlState
1613
import Potato.Flow.Llama
1714
import Potato.Flow.Serialization.Snake
1815
import Potato.Flow.Types
1916

2017
import Control.Exception (assert)
2118

22-
import qualified Data.Text as T
2319
import qualified Data.IntMap as IM
2420
import qualified Data.IntSet as IS
2521
import qualified Data.Sequence as Seq

src/Potato/Flow/OwlWorkspace.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ clearLocalPreview (ws, changes) = (ws { _owlPFWorkspace_localPreview = Nothing }
215215
maybeCommitLocalPreviewToLlamaStackAndClear :: OwlPFWorkspace -> OwlPFWorkspace
216216
maybeCommitLocalPreviewToLlamaStackAndClear ws = case _owlPFWorkspace_localPreview ws of
217217
Nothing -> ws
218-
Just (shep, shift, undollama) -> r_1 where
218+
Just (_, _, undollama) -> r_1 where
219219
newstack = moveLlamaStackDone undollama (_owlPFWorkspace_llamaStack ws)
220220
r_1 = ws {
221221
_owlPFWorkspace_llamaStack = newstack

src/Potato/Flow/Render.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import Potato.Flow.OwlItem
4444
import Potato.Flow.Owl
4545
import Potato.Flow.Controller.Types
4646
import Potato.Flow.Controller.OwlLayers
47-
import Potato.Flow.Methods.LineTypes
4847

4948

5049
import qualified Data.IntMap as IM
@@ -101,11 +100,6 @@ instance OwlRenderSet RenderContext where
101100
sortForRendering RenderContext {..} = sortForRendering (_renderContext_owlTree, _renderContext_layerMetaMap)
102101

103102

104-
105-
emptyChar :: PChar
106-
emptyChar = ' '
107-
108-
109103
-- TODO for selection rendering you want to make it V.Vector (Maybe PChar) or maybe you can just use a map?
110104
{-
111105
class IsRenderedCanvasRegion rc where

0 commit comments

Comments
 (0)