Changeset 88739997 in mainline for uspace/lib/termui/src/history.c


Ignore:
Timestamp:
2024-09-18T10:05:08Z (5 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
36fcd0a
Parents:
9aa51406
git-author:
Jiri Svoboda <jiri@…> (2024-09-17 17:04:24)
git-committer:
Jiri Svoboda <jiri@…> (2024-09-18 10:05:08)
Message:

Remove forgotten debug messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/termui/src/history.c

    r9aa51406 r88739997  
    604604        }
    605605
    606         //printf("Counted at least %d viewport rows.\n", rows);
    607 
    608606        return (rows > max) ? max : rows;
    609607}
     
    647645        assert(history->row_delta <= SIZE_MAX - row);
    648646
    649         //printf("Iterating history rows: %d..%d\n", row, row + count);
    650 
    651647        size_t current_line = history->viewport_top;
    652648        size_t delta = history->row_delta + (size_t) row;
     
    678674                delta = 0;
    679675
    680                 //printf("Line %zu, %zu rows\n", current_line, _history_line_rows(history, current_line));
    681 
    682676                /* Callback for each full row. */
    683677                while (count > 0 && line_offset + history->cols <= line.len) {
    684678                        assert(line.idx + line_offset <= history->cells.buf_len - history->cols);
    685                         //printf("Iterating row %d in line %zu\n", row, current_line);
    686679                        cb(udata, 0, row, &cells[line_offset], history->cols);
    687680
     
    692685
    693686                if (count > 0 && line_offset < line.len) {
    694                         //printf("Iterating last row %d of line %zu\n", row, current_line);
    695687                        /* Callback for the last (incomplete) row. */
    696688
     
    701693
    702694                        /* Callbacks for the blank section in the last row. */
    703                         //printf("Updating %zu blank cells.\n", history->cols - col);
    704695                        _update_blank(col, row, history->cols - col, cb, udata);
    705696
Note: See TracChangeset for help on using the changeset viewer.