Skip to content

Commit

Permalink
Remove currentHeight unused var in nbgl_use_case
Browse files Browse the repository at this point in the history
(cherry picked from commit a9d8362)
  • Loading branch information
cedelavergne-ledger authored and Xavier Chapron committed Jan 24, 2024
1 parent 7e6edc7 commit c323281
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib_nbgl/src/nbgl_use_case.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,16 +776,14 @@ uint8_t nbgl_useCaseGetNbTagValuesInPage(uint8_t nbPair
*/
uint8_t nbgl_useCaseGetNbPagesForTagValueList(const nbgl_layoutTagValueList_t *tagValueList)
{
uint8_t nbPages = 0;
uint8_t nbPairs = tagValueList->nbPairs;
uint8_t nbPairsInPage;
uint16_t currentHeight = 0;
uint8_t i = 0;
bool tooLongToFit;
uint8_t nbPages = 0;
uint8_t nbPairs = tagValueList->nbPairs;
uint8_t nbPairsInPage;
uint8_t i = 0;
bool tooLongToFit;

while (i < tagValueList->nbPairs) {
// upper margin
currentHeight += 24;
nbPairsInPage = nbgl_useCaseGetNbTagValuesInPage(nbPairs, tagValueList, i, &tooLongToFit);
i += nbPairsInPage;
setNbPairs(nbPages, nbPairsInPage, tooLongToFit);
Expand Down

0 comments on commit c323281

Please sign in to comment.