Skip to content

Commit

Permalink
select_pokemon: Remove get_view function
Browse files Browse the repository at this point in the history
Not needed
  • Loading branch information
kbembedded committed Sep 15, 2023
1 parent fd28f23 commit 5d8823a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pokemon_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ PokemonFap* pokemon_alloc() {

// Select Pokemon View
pokemon_fap->select_view = select_pokemon_alloc(pokemon_fap);
view_set_previous_callback(select_pokemon_get_view(pokemon_fap), pokemon_exit_confirm_view);
view_set_previous_callback(pokemon_fap->select_view, pokemon_exit_confirm_view);
view_dispatcher_add_view(
pokemon_fap->view_dispatcher, AppViewSelectPokemon, select_pokemon_get_view(pokemon_fap));
pokemon_fap->view_dispatcher, AppViewSelectPokemon, pokemon_fap->select_view);

// Trade View
pokemon_fap->trade_view = trade_alloc(pokemon_fap);
Expand Down
5 changes: 0 additions & 5 deletions views/select_pokemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,3 @@ void select_pokemon_free(PokemonFap* pokemon_fap) {
furi_assert(pokemon_fap);
view_free(pokemon_fap->select_view);
}

View* select_pokemon_get_view(PokemonFap* pokemon_fap) {
furi_assert(pokemon_fap);
return pokemon_fap->select_view;
}
2 changes: 0 additions & 2 deletions views/select_pokemon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ View* select_pokemon_alloc(PokemonFap* pokemon_fap);

void select_pokemon_free(PokemonFap* pokemon_fap);

View* select_pokemon_get_view(PokemonFap* pokemon_fap);

#endif /* SELECCT_POKEMON_HPP */

0 comments on commit 5d8823a

Please sign in to comment.