Skip to content

Commit

Permalink
iosupport: remove unused variable from item_list_t
Browse files Browse the repository at this point in the history
  • Loading branch information
KrahJohlito committed Oct 3, 2021
1 parent 8fc50dc commit b1ea9ff
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions include/iosupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ typedef struct
/// 0 = General refresh, which means that it will be refreshed every MENU_GENERAL_UPDATE_DELAY frames, regardless of whether automatic refresh is enabled or not.
int updateDelay;

/// item description
char *text;

/// item description in localised form (used if value is not negative)
int (*itemTextId)(void);

Expand Down
2 changes: 1 addition & 1 deletion src/appsupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,6 @@ static void appShutdown(void)
}

static item_list_t appItemList = {
APP_MODE, -1, 0, MODE_FLAG_NO_COMPAT | MODE_FLAG_NO_UPDATE, MENU_MIN_INACTIVE_FRAMES, APP_MODE_UPDATE_DELAY, "Applications", &appGetTextId, NULL, &appInit, &appNeedsUpdate, &appUpdateItemList,
APP_MODE, -1, 0, MODE_FLAG_NO_COMPAT | MODE_FLAG_NO_UPDATE, MENU_MIN_INACTIVE_FRAMES, APP_MODE_UPDATE_DELAY, &appGetTextId, NULL, &appInit, &appNeedsUpdate, &appUpdateItemList,
&appGetItemCount, NULL, &appGetItemName, &appGetItemNameLength, &appGetItemStartup, &appDeleteItem, &appRenameItem, &appLaunchItem,
&appGetConfig, &appGetImage, &appCleanUp, &appShutdown, NULL, &appGetIconId};
2 changes: 1 addition & 1 deletion src/bdmsupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,6 @@ static char *bdmGetPrefix(void)
}

static item_list_t bdmGameList = {
BDM_MODE, 2, 0, 0, MENU_MIN_INACTIVE_FRAMES, BDM_MODE_UPDATE_DELAY, "BDM Games", &bdmGetTextId, &bdmGetPrefix, &bdmInit, &bdmNeedsUpdate,
BDM_MODE, 2, 0, 0, MENU_MIN_INACTIVE_FRAMES, BDM_MODE_UPDATE_DELAY, &bdmGetTextId, &bdmGetPrefix, &bdmInit, &bdmNeedsUpdate,
&bdmUpdateGameList, &bdmGetGameCount, &bdmGetGame, &bdmGetGameName, &bdmGetGameNameLength, &bdmGetGameStartup, &bdmDeleteGame, &bdmRenameGame,
&bdmLaunchGame, &bdmGetConfig, &bdmGetImage, &bdmCleanUp, &bdmShutdown, &bdmCheckVMC, &bdmGetIconId};
2 changes: 1 addition & 1 deletion src/ethsupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ static char *ethGetPrefix(void)
}

static item_list_t ethGameList = {
ETH_MODE, 1, 0, 0, MENU_MIN_INACTIVE_FRAMES, ETH_MODE_UPDATE_DELAY, "ETH Games", &ethGetTextId, &ethGetPrefix, &ethInit, &ethNeedsUpdate,
ETH_MODE, 1, 0, 0, MENU_MIN_INACTIVE_FRAMES, ETH_MODE_UPDATE_DELAY, &ethGetTextId, &ethGetPrefix, &ethInit, &ethNeedsUpdate,
&ethUpdateGameList, &ethGetGameCount, &ethGetGame, &ethGetGameName, &ethGetGameNameLength, &ethGetGameStartup, &ethDeleteGame, &ethRenameGame,
&ethLaunchGame, &ethGetConfig, &ethGetImage, &ethCleanUp, &ethShutdown, &ethCheckVMC, &ethGetIconId};

Expand Down
2 changes: 1 addition & 1 deletion src/hddsupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,6 @@ static char *hddGetPrefix(void)
}

static item_list_t hddGameList = {
HDD_MODE, 0, 0, MODE_FLAG_COMPAT_DMA, MENU_MIN_INACTIVE_FRAMES, HDD_MODE_UPDATE_DELAY, "HDD Games", &hddGetTextId, &hddGetPrefix, &hddInit, &hddNeedsUpdate, &hddUpdateGameList,
HDD_MODE, 0, 0, MODE_FLAG_COMPAT_DMA, MENU_MIN_INACTIVE_FRAMES, HDD_MODE_UPDATE_DELAY, &hddGetTextId, &hddGetPrefix, &hddInit, &hddNeedsUpdate, &hddUpdateGameList,
&hddGetGameCount, &hddGetGame, &hddGetGameName, &hddGetGameNameLength, &hddGetGameStartup, &hddDeleteGame, &hddRenameGame,
&hddLaunchGame, &hddGetConfig, &hddGetImage, &hddCleanUp, &hddShutdown, &hddCheckVMC, &hddGetIconId};

0 comments on commit b1ea9ff

Please sign in to comment.