mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
util.set: Remove duplicate __freeze metamethod
Backs out 895a82c5d8d4 beacuse __freeze already added in a96a2fbcc6c0
This commit is contained in:
parent
180daf56a1
commit
517f20b523
1 changed files with 0 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue