diff --git a/docs/source/api/state.rst b/docs/source/api/state.rst index 451750a0..da815278 100644 --- a/docs/source/api/state.rst +++ b/docs/source/api/state.rst @@ -73,14 +73,6 @@ Get either the global table or the Lua registry as a :doc:`sol::table`, w Overrides the panic function Lua calls when something unrecoverable or unexpected happens in the Lua VM. Must be a function of the that matches the ``int(*)(lua_State*)`` function signature. -.. code-block:: cpp - :caption: function: make a thread - - thread create(); - static thread create (lua_State* L); - -Creates a thread. Forwards its arguments to :ref:`thread::create`. - .. code-block:: cpp :caption: function: make a table diff --git a/sol/state_view.hpp b/sol/state_view.hpp index fe373964..92e57957 100644 --- a/sol/state_view.hpp +++ b/sol/state_view.hpp @@ -24,7 +24,6 @@ #include "error.hpp" #include "table.hpp" -#include "thread.hpp" #include namespace sol { @@ -291,14 +290,6 @@ public: static inline table create_table(lua_State* L, int narr, int nrec, Key&& key, Value&& value, Args&&... args) { return global_table::create(L, narr, nrec, std::forward(key), std::forward(value), std::forward(args)...); } - - thread create_thread() { - return create_thread(lua_state()); - } - - static inline thread create_thread(lua_State* L, int narr = 0, int nrec = 0) { - return thread::create(L); - } }; } // sol