Skip to content

Commit

Permalink
clean: remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Oct 16, 2024
1 parent aa8a4e8 commit e0f24ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions dooit/ui/widgets/trees/todos_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ def _get_parent(self, id: str) -> Optional[Todo]:
def _get_children(self, id: str) -> Iterable[Todo]:
return Todo.from_id(id).todos

def _switch_to_workspace(self) -> None:
if not self.node.id:
return

self.screen.query_one("WorkspacesTree").focus()

@property
def formatter(self) -> "TodoFormatter":
return self.api.formatter.todos
Expand Down
10 changes: 0 additions & 10 deletions dooit/ui/widgets/trees/workspaces_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ def formatter(self) -> "WorkspaceFormatter":
def layout(self):
return self.api.layouts.workspace_layout

def _switch_to_todos(self) -> None:
try:
if not self.node.id:
return

tree = TodosTree(self.current.model)
self.screen.query_one(f"#{tree.id}", expect_type=TodosTree).focus()
except ValueError:
self.notify("No workspace selected")

def add_workspace(self) -> str:
workspace = self.model.add_workspace()
renderer = self._renderers[workspace.uuid]
Expand Down

0 comments on commit e0f24ec

Please sign in to comment.