Skip to content

Commit

Permalink
removed unused varible scroll_count in lib/menu.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ldev committed Jun 16, 2024
1 parent 1c3eeb0 commit 36c1fac
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,6 @@ bm_menu_run_with_touch(struct bm_menu *menu, struct bm_touch touch)
}

if (count_down == 2) {
int16_t scroll_count = 0;
int16_t scroll_directions[2];
int16_t distance_trigger = displayed * bm_menu_get_line_height(menu) / 4;
for (size_t i = 0; i < 2; ++i) {
Expand All @@ -1401,7 +1400,6 @@ bm_menu_run_with_touch(struct bm_menu *menu, struct bm_touch touch)
int32_t movement_y = point.pos_y - point.start_y;
if (abs(movement_y) > distance_trigger) {
scroll_directions[i] = movement_y / abs(movement_y);
scroll_count++;
}
}

Expand Down

0 comments on commit 36c1fac

Please sign in to comment.