# HG changeset patch # User Kim Alvefur # Date 1685622837 -7200 # Node ID dee26e4cfb2bf0cc70b684c09068757fd0f0b8d0 # Parent 45458ecaacaef1e5e151c3449088fd66bbcf8840 util.set: Remove duplicate __freeze metamethod Backs out 895a82c5d8d4 beacuse __freeze already added in a96a2fbcc6c0 diff -r 45458ecaacae -r dee26e4cfb2b util/set.lua --- a/util/set.lua Wed May 31 14:20:45 2023 +0200 +++ b/util/set.lua Thu Jun 01 14:33:57 2023 +0200 @@ -189,15 +189,6 @@ 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;