Skip to content

Commit 5bc8a6c

Browse files
Xgames123Cloudef
authored andcommitted
removed another unused variable (displayed) in curses renderer
1 parent 9fc9218 commit 5bc8a6c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/renderers/curses/curses.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ render(struct bm_menu *menu)
238238
uint32_t count, cl = 0;
239239
const uint32_t lines = fmax(getmaxy(curses.stdscreen), 1) - 1;
240240
if (lines > 1) {
241-
uint32_t displayed = 0;
242241
struct bm_item **items = bm_menu_get_filtered_items(menu, &count);
243242
const bool scrollbar = (menu->scrollbar > BM_SCROLLBAR_NONE && (menu->scrollbar != BM_SCROLLBAR_AUTOHIDE || count > lines) ? true : false);
244243
const int32_t offset_x = title_len + (scrollbar && 2 > title_len ? 2 - title_len : 0);
@@ -255,7 +254,6 @@ render(struct bm_menu *menu)
255254
draw_line(color, 1 + cl++, "%*s%s%s", offset_x + prefix_x, "", (menu->prefix ? " " : ""), (items[i]->text ? items[i]->text : ""));
256255
}
257256

258-
++displayed;
259257
}
260258

261259
if (scrollbar) {

0 commit comments

Comments
 (0)