Diff

util/set.lua @ 13123:dee26e4cfb2b

util.set: Remove duplicate __freeze metamethod Backs out 895a82c5d8d4 beacuse __freeze already added in a96a2fbcc6c0
author Kim Alvefur <zash@zash.se>
date Thu, 01 Jun 2023 14:33:57 +0200
parent 13033:a863e4237b91
line wrap: on
line diff
--- 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;