diff --git a/main/include/lcd/ui_image_browser.h b/main/include/lcd/ui_image_browser.h index 472ee96..182027a 100644 --- a/main/include/lcd/ui_image_browser.h +++ b/main/include/lcd/ui_image_browser.h @@ -1,16 +1,8 @@ #pragma once #include - #include "lvgl.h" -// Builds the image-browser view (tileview with tiles, or the empty-state -// placeholder) onto the given screen. The caller must hold the LVGL lock. void ui_image_browser_build_view(lv_obj_t *screen); - -// Stops the slideshow and clears browser state; call before the active screen -// is cleared. void ui_image_browser_reset(void); - -// Number of images shown by the most recent build (used for logging). size_t ui_image_browser_get_image_count(void); diff --git a/main/include/lcd/ui_log.h b/main/include/lcd/ui_log.h index 84c7450..d1142fa 100644 --- a/main/include/lcd/ui_log.h +++ b/main/include/lcd/ui_log.h @@ -2,14 +2,7 @@ #include "lvgl.h" -// Appends a line to the scrollback log. Safe to call before the log view -// exists and from any task; the line is always stored in the ring buffer. void ui_log_append(const char *text); void ui_log_appendf(const char *format, ...); - -// Builds the log view (title + textarea) onto the given screen and restores -// the ring-buffer history. The caller must hold the LVGL lock. void ui_log_build_view(lv_obj_t *screen); - -// Drops the textarea reference; call before the active screen is cleared. void ui_log_detach(void); diff --git a/main/lcd/ui_log.c b/main/lcd/ui_log.c index 4b42187..4cb3bcb 100644 --- a/main/lcd/ui_log.c +++ b/main/lcd/ui_log.c @@ -21,8 +21,6 @@ static size_t ui_log_buffer_index(size_t line_offset){ return (log_line_start + line_offset) % UI_LOG_MAX_LINES; } -// Stores text in the ring buffer, sets *out_evicted when the oldest line had to -// be dropped, and returns the stored (possibly truncated) line. static const char *ui_log_store_line(const char *text, bool *out_evicted){ size_t line_index; bool evicted = false; @@ -65,7 +63,6 @@ void ui_log_append(const char *text){ if(log_textarea == NULL) return; lvgl_port_lock(0); - // Appending a line is O(1); only a dropped oldest line forces a full rebuild. if(evicted) ui_log_render_all_locked(); else ui_log_append_line_locked(stored_line); lvgl_port_unlock();