1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-29 21:30:26 +02:00

Remove unused and clean up missused variable-value assignments.

* Unused variables
* Unused values (assigned to variables, but overwritten before use)
* Defining already defined variables instead of reassigning to them.
This commit is contained in:
Tim
2016-06-26 13:34:14 +02:00
committed by paramat
parent d7a7456007
commit 4473627de0
12 changed files with 22 additions and 31 deletions

View File

@ -111,7 +111,6 @@ local function furnace_node_timer(pos, elapsed)
local inv = meta:get_inventory()
local srclist = inv:get_list("src")
local fuellist = inv:get_list("fuel")
local dstlist = inv:get_list("dst")
--
-- Cooking
@ -172,7 +171,7 @@ local function furnace_node_timer(pos, elapsed)
-- Update formspec, infotext and node
--
local formspec = inactive_formspec
local item_state = ""
local item_state
local item_percent = 0
if cookable then
item_percent = math.floor(src_time / cooked.time * 100)