From 517f20b5230586df9baee3afb47982a54478d074 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 1 Jun 2023 14:33:57 +0200 Subject: util.set: Remove duplicate __freeze metamethod Backs out 895a82c5d8d4 beacuse __freeze already added in a96a2fbcc6c0 --- util/set.lua | 9 --------- 1 file changed, 9 deletions(-) diff --git a/util/set.lua b/util/set.lua index dbff28b4..6c860c3f 100644 --- a/util/set.lua +++ b/util/set.lua @@ -189,15 +189,6 @@ function set_mt.__tostring(set) return "{"..t_concat(s, ", ").."}"; end -function set_mt.__freeze(set) - local s = {}; - for item in pairs(set._items) do - s[#s + 1] = item; - end - return s; -end - - return { new = new; is_set = is_set; -- cgit v1.2.3