From 5de03d5b389e1e7739fd7bb6c1cae4aafeb8a639 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Mon, 15 Jan 2024 11:55:52 -0800 Subject: [PATCH] Remove unused function. --- modules/network/init.lua | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/modules/network/init.lua b/modules/network/init.lua index 77bf4ca..9dab9c9 100644 --- a/modules/network/init.lua +++ b/modules/network/init.lua @@ -3,33 +3,6 @@ me.networks = {} local networks = me.networks local path = me.get_module_path("network") ---deprecated: use ItemStack(x) instead ---[[ -local function split_stack_values(stack) - if type(stack) == "string" then - local split_string = stack:split(" ") - if (#split_string < 1) then - return "",0,0,nil - end - local stack_name = split_string[1] - if (#split_string < 2) then - return stack_name,1,0,nil - end - local stack_count = tonumber(split_string[2]) - if (#split_string < 3) then - return stack_name,stack_count,0,nil - end - local stack_wear = tonumber(split_string[3]) - if (#split_string < 4) then - return stack_name,stack_count,stack_wear,nil - end - return stack_name,stack_count,stack_wear,true - else - return stack:get_name(), stack:get_count(), stack:get_wear(), stack:get_meta() - end -end ---]] - local annotate_large_stack = function(stack, count) local description = minetest.registered_items[stack:get_name()] if description then