removed opus restructure comments
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user