chore(core): remove unused code in session manager [no changelog]
What changed, and why it matters
This commit simply deletes an unused helper function that created a special type of session without a cache entry. There is no functional change to active code, no bug fix, and no security relevance.
No action needed; this is a benign dead-code removal.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff removes get_new_seedless_session_ctx() from core/src/trezor/wire/thp/session_manager.py. The function was not referenced anywhere in the changed file or in the visible diff, and the commit is labeled as a chore to remove unused code with no changelog entry. No security behavior is altered.
Changed components
core/src/trezor/wire/thp/session_manager.pyInspect captured patch +0 / −11
diff --git a/core/src/trezor/wire/thp/session_manager.py b/core/src/trezor/wire/thp/session_manager.py
index a50a1a332..0543b577d 100644
--- a/core/src/trezor/wire/thp/session_manager.py
+++ b/core/src/trezor/wire/thp/session_manager.py
@@ -23,17 +23,6 @@ def get_new_session_context(
return SessionContext(channel_ctx, session_cache)
-def get_new_seedless_session_ctx(
- channel_ctx: Channel, session_id: int
-) -> SeedlessSessionContext:
- """
- Creates new `SeedlessSessionContext` that is not backed by a cache entry.
-
- Seed cannot be derived with this type of session.
- """
- return SeedlessSessionContext(channel_ctx, session_id)
-
-
def get_session_from_cache(
channel_ctx: Channel, session_id: int
) -> GenericSessionContext | None:
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.