aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-06-01 14:33:57 +0200
committerKim Alvefur <zash@zash.se>2023-06-01 14:33:57 +0200
commit517f20b5230586df9baee3afb47982a54478d074 (patch)
treeb493ee4b90e2f94c2b4d7d0ec0493c408fb6b12a
parent180daf56a1f0934ba8043901f4b565382058cdd1 (diff)
downloadprosody-517f20b5230586df9baee3afb47982a54478d074.tar.gz
prosody-517f20b5230586df9baee3afb47982a54478d074.zip
util.set: Remove duplicate __freeze metamethod
Backs out 895a82c5d8d4 beacuse __freeze already added in a96a2fbcc6c0
-rw-r--r--util/set.lua9
1 files changed, 0 insertions, 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;