Changeset

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
parents 13122:45458ecaacae
children 13124:f15e23840780
files util/set.lua
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
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;