From cccec914cad1bd61685eabab91c6b5098ab1dd28 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Thu, 14 May 2020 02:15:04 +0100 Subject: [PATCH] Remove deprecated Table::call --- src/table.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/table.rs b/src/table.rs index ecd4b95..d85a7a5 100644 --- a/src/table.rs +++ b/src/table.rs @@ -137,28 +137,6 @@ impl<'lua> Table<'lua> { } } - /// Gets the function associated to `key` from the table and executes it, - /// passing the table itself along with `args` as function arguments. - /// - /// This function is deprecated since 0.3.1 in favor of [`call_method`] - /// in the `TableExt` trait. - /// - /// This might invoke the `__index` metamethod. - /// - /// [`call_method`]: trait.TableExt.html#tymethod.call_method - #[deprecated(since = "0.3.1", note = "Please use `call_method` instead")] - pub fn call(&self, key: K, args: A) -> Result - where - K: ToLua<'lua>, - A: ToLuaMulti<'lua>, - R: FromLuaMulti<'lua>, - { - let lua = self.0.lua; - let mut args = args.to_lua_multi(lua)?; - args.push_front(Value::Table(self.clone())); - self.get::<_, Function>(key)?.call(args) - } - /// Compares two tables for equality. /// /// Tables are compared by reference first.