Skip to content

Commit 309e26b

Browse files
committed
we don't need __ipairs in lua 5.3
1 parent ac85ff8 commit 309e26b

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Diff for: lualib/sharedata/corelib.lua

-18
Original file line numberDiff line numberDiff line change
@@ -91,24 +91,6 @@ function meta:__len()
9191
return len(getcobj(self))
9292
end
9393

94-
local function conf_ipairs(self, index)
95-
local obj = getcobj(self)
96-
index = index + 1
97-
local value = rawget(self, index)
98-
if value then
99-
return index, value
100-
end
101-
local sz = len(obj)
102-
if sz < index then
103-
return
104-
end
105-
return index, self[index]
106-
end
107-
108-
function meta:__ipairs()
109-
return conf_ipairs, self, 0
110-
end
111-
11294
function meta:__pairs()
11395
return conf.next, self, nil
11496
end

0 commit comments

Comments
 (0)