From e79598c268babb7cc3d9889c5180fea2d607f764 Mon Sep 17 00:00:00 2001 From: Zughy <4279489-marco_a@users.noreply.gitlab.com> Date: Sat, 28 May 2022 00:32:19 +0200 Subject: [PATCH] Remove unused undocumented function --- locale/arena_lib.it.tr | 3 --- locale/template.txt | 3 --- src/debug_utilities.lua | 31 ------------------------------- 3 files changed, 37 deletions(-) diff --git a/locale/arena_lib.it.tr b/locale/arena_lib.it.tr index dbe9f96..8d79d61 100755 --- a/locale/arena_lib.it.tr +++ b/locale/arena_lib.it.tr @@ -126,9 +126,6 @@ Spawn points: =Punti di spawn: Properties: =Proprietà: Temp properties: =Proprietà temporanee: Team properties: =Proprietà squadra: -Player: =Giocatore: -, kills: =, uccisioni: -, deaths: =, morti: # items.lua You're immune!=Sei immune! diff --git a/locale/template.txt b/locale/template.txt index cc5e4c1..e2424f6 100755 --- a/locale/template.txt +++ b/locale/template.txt @@ -126,9 +126,6 @@ Spawn points: = Properties: = Temp properties: = Team properties: = -Player: = -, kills: = -, deaths: = # items.lua You're immune!= diff --git a/src/debug_utilities.lua b/src/debug_utilities.lua index 836a2b5..bf92c18 100755 --- a/src/debug_utilities.lua +++ b/src/debug_utilities.lua @@ -261,37 +261,6 @@ end -function arena_lib.print_arena_stats(sender, mod, arena_name) - - local arena_ID, arena = arena_lib.get_arena_by_name(mod, arena_name) - - if arena == nil then - minetest.chat_send_player(sender, minetest.colorize("#e6482e", S("[!] This arena doesn't exist!"))) - return end - - if not arena.in_game and not arena.in_celebration then - minetest.chat_send_player(sender, minetest.colorize("#e6482e", S("[!] No ongoing game!"))) - return end - - for pl_name, stats in pairs(arena.players) do - - -- calcolo proprietà del giocatore - local p_properties = "" - for k, v in pairs(arena_lib.mods[mod].player_properties) do - p_properties = p_properties .. ", " .. k .. ": " .. tostring(stats[k]) - end - - minetest.chat_send_player(sender, - S("Player: ") .. pl_name .. - S(", kills: ") .. stats.kills .. - S(", deaths: ") .. stats.deaths .. - p_properties) - end - -end - - - function arena_lib.flush_arena(mod, arena_name, sender) local id, arena = arena_lib.get_arena_by_name(mod, arena_name)