screen_process: ifdef out unused function
What changed, and why it matters
This is a minor build/maintenance change. A developer wrapped an internal helper function in a compile-time flag so it is excluded when the file is compiled for automated tests. No user-facing behavior changes, no bug fix, and no security relevance.
No security action needed. Treat as normal code hygiene / build cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit adds #ifndef TESTING / #endif around the static helper _screen_has_changed() in src/ui/screen_process.c. The function was already unused outside this file, and the code that previously called it had been commented out to allow test compilation. This change simply avoids an ‘unused function’ warning or linker issue when building the file under the TESTING configuration. It does not alter runtime firmware logic or fix any vulnerability.
Changed components
src/ui/screen_process.cInspect captured patch +2 / −0
diff --git a/src/ui/screen_process.c b/src/ui/screen_process.c
index 4320401..c927574 100644
--- a/src/ui/screen_process.c
+++ b/src/ui/screen_process.c
@@ -67,6 +67,7 @@ static void _screen_draw(component_t* component)
screen_frame_cnt++;
}
+#ifndef TESTING
/**
* Detects if the screen component being displayed has changed
* since the last time this function was called.
@@ -83,6 +84,7 @@ static bool _screen_has_changed(const component_t* current_component)
}
return false;
}
+#endif
void screen_process(void)
{
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.