Remove example tree
This commit is contained in:
parent
efd33ff05e
commit
c3dafbaf63
2 changed files with 1 additions and 10 deletions
|
|
@ -158,6 +158,4 @@ clientApp = App
|
||||||
}
|
}
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = void $ defaultMain clientApp testState
|
main = void $ defaultMain clientApp $ newClientState exampleNode
|
||||||
where
|
|
||||||
testState = ClientState {csTree = exampleTree, csEditor = Nothing}
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
|
|
||||||
module Forest.Client.Tree
|
module Forest.Client.Tree
|
||||||
( Tree
|
( Tree
|
||||||
, newTree
|
, newTree
|
||||||
|
|
@ -14,8 +12,6 @@ module Forest.Client.Tree
|
||||||
, foldCurrent
|
, foldCurrent
|
||||||
, unfoldCurrent
|
, unfoldCurrent
|
||||||
, toggleFold
|
, toggleFold
|
||||||
-- * Example values
|
|
||||||
, exampleTree
|
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Brick
|
import Brick
|
||||||
|
|
@ -139,6 +135,3 @@ applyFolds unfolded node
|
||||||
where
|
where
|
||||||
foldedChildren = Map.fromList $ mapChildren applyFoldsToChild node
|
foldedChildren = Map.fromList $ mapChildren applyFoldsToChild node
|
||||||
applyFoldsToChild nid n = (nid, applyFolds (narrowSet nid unfolded) n)
|
applyFoldsToChild nid n = (nid, applyFolds (narrowSet nid unfolded) n)
|
||||||
|
|
||||||
exampleTree :: Tree
|
|
||||||
exampleTree = newTree exampleNode (Path ["hammer"]) Set.empty
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue