From d7136cdb6a7c20a8df303a00a9147146558e99d1 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 1 Apr 2019 08:30:08 +0200 Subject: [PATCH] battlesystem/menu: remove unused functions --- .../scenes/battlesystem/controller/menu.lua | 19 ------------------- .../scenes/battlesystem/init.lua | 2 -- 2 files changed, 21 deletions(-) diff --git a/sonic-radiance.love/scenes/battlesystem/controller/menu.lua b/sonic-radiance.love/scenes/battlesystem/controller/menu.lua index 6fbfb1c..9fbed1c 100644 --- a/sonic-radiance.love/scenes/battlesystem/controller/menu.lua +++ b/sonic-radiance.love/scenes/battlesystem/controller/menu.lua @@ -91,25 +91,6 @@ function MenuConstructor:unset( ) self.isActive = false end -function MenuConstructor:update(dt) - if (self.isActive) then - end -end - -function MenuConstructor:sendSignal(menu, id) - --print(self.menu[menu][id]) - self.isActive = false - if (menu == 1) then - self.character:getSignal(BaseMenu[id], 1) - else - self.character:getSignal(BaseMenu[menu], id) - end -end - -function MenuConstructor:draw() - -- remove in order to avoid crash -end - -- CHARACTER_MENU -- The actuals menus in the character menu diff --git a/sonic-radiance.love/scenes/battlesystem/init.lua b/sonic-radiance.love/scenes/battlesystem/init.lua index 991ed87..5d3d9a2 100644 --- a/sonic-radiance.love/scenes/battlesystem/init.lua +++ b/sonic-radiance.love/scenes/battlesystem/init.lua @@ -32,7 +32,6 @@ function BattleSystem:update(dt) self.cursor:update(dt) self.actormanager:update(dt) - self.menu:update(dt) end function BattleSystem:draw() @@ -47,7 +46,6 @@ function BattleSystem:draw() self.hud:draw() self.actormanager:draw() - self.menu:draw(dt) --CScreen:cease() end