Remove __ipairs metamethod deprecated in lua 5.3 and not available by default

This commit is contained in:
Alex Orlenko
2020-01-25 19:41:02 +00:00
parent 07fc4642ae
commit e4dc773aa3
2 changed files with 6 additions and 13 deletions
-7
View File
@@ -77,11 +77,6 @@ pub enum MetaMethod {
///
/// This is not an operator, but it will be called by the built-in `pairs` function.
Pairs,
#[cfg(any(feature = "lua53", feature = "lua52"))]
/// The `__ipairs` metamethod.
///
/// This is not an operator, but it will be called by the built-in `ipairs` function.
IPairs,
}
impl MetaMethod {
@@ -119,8 +114,6 @@ impl MetaMethod {
MetaMethod::ToString => b"__tostring",
#[cfg(any(feature = "lua53", feature = "lua52"))]
MetaMethod::Pairs => b"__pairs",
#[cfg(any(feature = "lua53", feature = "lua52"))]
MetaMethod::IPairs => b"__ipairs",
}
}
}