helpers: remove debug related output in spairs

This commit is contained in:
shagu
2025-08-04 09:37:43 +02:00
parent 71672c0625
commit f439216db6
-4
View File
@@ -326,10 +326,6 @@ local function orderedNext(t, state)
end
ShaguTweaks.spairs = function(t, sortFunc)
if sortFunc ~= nil and type(sortFunc) ~= "function" then
error("ShaguTweaks.spairs: expected a function for sortFunc, got " .. type(sortFunc))
end
t.__orderedIndex = __genOrderedIndex(t, sortFunc)
return orderedNext, t, nil
end