X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=builtin%2Fmisc.lua;h=82a0ba298bfbba5afc0349002517cdf8be0e3052;hb=d52185c43e7fa96174bb9e0d6d7a38f894b3a356;hp=4be03c38a302f59c9ef43e793264f8225bf6a369;hpb=ae8ff4b8e2da35265ebbbe7afe99ed29e61efa7d;p=minetest.git diff --git a/builtin/misc.lua b/builtin/misc.lua index 4be03c38a..82a0ba298 100644 --- a/builtin/misc.lua +++ b/builtin/misc.lua @@ -99,20 +99,3 @@ function minetest.setting_get_pos(name) return minetest.string_to_pos(value) end -function minetest.formspec_escape(str) - str = string.gsub(str, "\\", "\\\\") - str = string.gsub(str, "%[", "\\[") - str = string.gsub(str, "%]", "\\]") - return str -end - -function math.hypot(x, y) - local t - x = math.abs(x) - y = math.abs(y) - t = math.min(x, y) - x = math.max(x, y) - t = t / x - return x * math.sqrt(1 + t * t) -end -