]> git.lizzy.rs Git - minetest.git/blobdiff - builtin/misc.lua
Add ability to activate mods with doubleclick (remove old_style_mod_selection)
[minetest.git] / builtin / misc.lua
index 4be03c38a302f59c9ef43e793264f8225bf6a369..82a0ba298bfbba5afc0349002517cdf8be0e3052 100644 (file)
@@ -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
-