Skip to content

Commit b3604f5

Browse files
warning cleanup 5, delete doCmdOwlPFWorkspaceUndoPermanentFirst
1 parent be23c16 commit b3604f5

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/Potato/Flow/OwlWorkspace.hs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,6 @@ doCmdWorkspace :: OwlPFCmd -> OwlPFWorkspace -> (OwlPFWorkspace, SuperOwlChanges
178178
doCmdWorkspace cmd pfw = force r where
179179
r = doLlamaWorkspace (makePFCLlama cmd) pfw
180180

181-
doCmdOwlPFWorkspaceUndoPermanentFirst :: (OwlPFState -> OwlPFCmd) -> OwlPFWorkspace -> (OwlPFWorkspace, SuperOwlChanges)
182-
doCmdOwlPFWorkspaceUndoPermanentFirst cmdFn ws = r where
183-
-- undoPermanent is actually not necessary as the next action clears the redo stack anyways
184-
(undoedws, undochanges) = undoPermanentWorkspace ws
185-
undoedpfs = _owlPFWorkspace_owlPFState undoedws
186-
cmd = cmdFn undoedpfs
187-
(newpfs, changes) = doLlamaWorkspace (makePFCLlama cmd) undoedws
188-
r = (newpfs, IM.union changes undochanges)
189-
190-
191181
------ update functions via commands
192182
data WSEvent =
193183
-- TODO DELETE
@@ -206,9 +196,6 @@ debugPrintBeforeAfterState :: (IsString a) => OwlPFState -> OwlPFState -> a
206196
debugPrintBeforeAfterState stateBefore stateAfter = fromString $ "BEFORE: " <> debugPrintOwlPFState stateBefore <> "\nAFTER: " <> debugPrintOwlPFState stateAfter
207197

208198

209-
noChanges :: OwlPFWorkspace -> (OwlPFWorkspace, SuperOwlChanges)
210-
noChanges ws = (ws, IM.empty)
211-
212199
clearLocalPreview :: (OwlPFWorkspace, SuperOwlChanges) -> (OwlPFWorkspace, SuperOwlChanges)
213200
clearLocalPreview (ws, changes) = (ws { _owlPFWorkspace_localPreview = Nothing }, changes)
214201

0 commit comments

Comments
 (0)