Skip to content

Commit

Permalink
Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
squee72564 committed Jan 7, 2024
1 parent fd93f13 commit 37c75f5
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions views/minesweeper_game_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ static const float difficulty_multiplier[5] = {

// Static helper functions
static void setup_board(MineSweeperGameScreen* instance);
static Point bfs_to_closest_tile(MineSweeperGameScreenModel* model) {
static inline void bfs_tile_clear(MineSweeperGameScreenModel* model);

Check failure on line 100 in views/minesweeper_game_screen.c

View workflow job for this annotation

GitHub Actions / Build Minesweeper for dev channel

invalid storage class for function 'bfs_tile_clear'

Check failure on line 100 in views/minesweeper_game_screen.c

View workflow job for this annotation

GitHub Actions / Build Minesweeper for release channel

invalid storage class for function 'bfs_tile_clear'
static void mine_sweeper_game_screen_set_board_information(

Check failure on line 101 in views/minesweeper_game_screen.c

View workflow job for this annotation

GitHub Actions / Build Minesweeper for dev channel

invalid storage class for function 'mine_sweeper_game_screen_set_board_information'

Check failure on line 101 in views/minesweeper_game_screen.c

View workflow job for this annotation

GitHub Actions / Build Minesweeper for release channel

invalid storage class for function 'mine_sweeper_game_screen_set_board_information'
MineSweeperGameScreen* instance,
Expand Down Expand Up @@ -264,10 +265,6 @@ static inline Point bfs_to_closest_tile(MineSweeperGameScreenModel* model) {

point_deq_push_back(deq, pos);

uint32_t start_tick = furi_get_tick();

uint16_t i = 0;

while (point_deq_size(deq) > 0) {
point_deq_pop_front(&pos, deq);
Point curr_pos = pointobj_get_point(pos);
Expand Down Expand Up @@ -314,14 +311,8 @@ static inline Point bfs_to_closest_tile(MineSweeperGameScreenModel* model) {
pointobj_set_point(pos, neighbor);
point_deq_push_back(deq, pos);
}

i++;
}

uint32_t ticks_elapsed = furi_get_tick() - start_tick;
double sec = (double)ticks_elapsed / (double)furi_kernel_get_tick_frequency();
double milliseconds = 1000.0L * sec;

point_set_clear(set);
point_deq_clear(deq);

Expand Down Expand Up @@ -349,8 +340,6 @@ static inline void bfs_tile_clear(MineSweeperGameScreenModel* model) {

point_deq_push_back(deq, pos);

uint32_t start_tick = furi_get_tick();

while (point_deq_size(deq) > 0) {
point_deq_pop_front(&pos, deq);
Point curr_pos = pointobj_get_point(pos);
Expand Down Expand Up @@ -398,10 +387,6 @@ static inline void bfs_tile_clear(MineSweeperGameScreenModel* model) {
}
}

uint32_t ticks_elapsed = furi_get_tick() - start_tick;
double sec = (double)ticks_elapsed / (double)furi_kernel_get_tick_frequency();
double milliseconds = 1000.0L * sec;

point_set_clear(set);
point_deq_clear(deq);
}
Expand Down

0 comments on commit 37c75f5

Please sign in to comment.