From bc3dccca5c66019dfbd218f39f086f7384f97d88 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Mon, 12 Sep 2022 19:24:54 +0200 Subject: Mainmenu: Properly sort mods and games (#12758) This also removes trivial and unused pkgmgr functions Fixes a bug caused by sorting in 2133fc8 --- builtin/common/misc_helpers.lua | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'builtin/common') diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua index 467f18804..720df3998 100644 --- a/builtin/common/misc_helpers.lua +++ b/builtin/common/misc_helpers.lua @@ -519,18 +519,6 @@ end -------------------------------------------------------------------------------- -- mainmenu only functions -------------------------------------------------------------------------------- -if INIT == "mainmenu" then - function core.get_game(index) - local games = core.get_games() - - if index > 0 and index <= #games then - return games[index] - end - - return nil - end -end - if core.gettext then -- for client and mainmenu function fgettext_ne(text, ...) text = core.gettext(text) -- cgit v1.2.3