Skip to content

Commit 7065b7d

Browse files
committed
remove unused func
1 parent f6b326e commit 7065b7d

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/idom/core/_f_back.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
def f_module_name(index: int = 0) -> str:
88
frame = f_back(index + 1)
99
if frame is None:
10-
return ""
10+
return "" # pragma: no cover
1111
name = frame.f_globals.get("__name__", "")
1212
assert isinstance(name, str), "Expected module name to be a string"
1313
return name
@@ -20,4 +20,4 @@ def f_back(index: int = 0) -> FrameType | None:
2020
return frame
2121
frame = frame.f_back
2222
index -= 1
23-
return None
23+
return None # pragma: no cover

src/idom/core/layout.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -481,12 +481,6 @@ def _check_should_render(old: ComponentType, new: ComponentType) -> bool:
481481
return False
482482

483483

484-
def _iter_model_state_children(model_state: _ModelState) -> Iterator[_ModelState]:
485-
yield model_state
486-
for child in model_state.children_by_key.values():
487-
yield from _iter_model_state_children(child)
488-
489-
490484
def _new_root_model_state(
491485
component: ComponentType, schedule_render: Callable[[_LifeCycleStateId], None]
492486
) -> _ModelState:

0 commit comments

Comments
 (0)