aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2018-01-21 17:27:27 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-01-21 18:27:27 +0100
commit49ff1d2ea8af6bf0e89fcab83522e3c55625b620 (patch)
tree0209962f1e759943d6e212a19e9cc58d71618abe /src/script/cpp_api
parent5dab7426451842793b183fbd961ad2ae83c8acbd (diff)
downloadminetest-49ff1d2ea8af6bf0e89fcab83522e3c55625b620.tar.gz
minetest-49ff1d2ea8af6bf0e89fcab83522e3c55625b620.tar.bz2
minetest-49ff1d2ea8af6bf0e89fcab83522e3c55625b620.zip
[CSM] Remove `on_connect` callback (#6941)
Fixes #6939
Diffstat (limited to 'src/script/cpp_api')
-rw-r--r--src/script/cpp_api/s_client.cpp11
-rw-r--r--src/script/cpp_api/s_client.h2
2 files changed, 0 insertions, 13 deletions
diff --git a/src/script/cpp_api/s_client.cpp b/src/script/cpp_api/s_client.cpp
index c6f7a8e19..457dabfa7 100644
--- a/src/script/cpp_api/s_client.cpp
+++ b/src/script/cpp_api/s_client.cpp
@@ -36,17 +36,6 @@ void ScriptApiClient::on_shutdown()
runCallbacks(0, RUN_CALLBACKS_MODE_FIRST);
}
-void ScriptApiClient::on_connect()
-{
- SCRIPTAPI_PRECHECKHEADER
-
- // get registered connect hooks
- lua_getglobal(L, "core");
- lua_getfield(L, -1, "registered_on_connect");
- // Call callback
- runCallbacks(0, RUN_CALLBACKS_MODE_FIRST);
-}
-
bool ScriptApiClient::on_sending_message(const std::string &message)
{
SCRIPTAPI_PRECHECKHEADER
diff --git a/src/script/cpp_api/s_client.h b/src/script/cpp_api/s_client.h
index 717fbb4cc..402b44e33 100644
--- a/src/script/cpp_api/s_client.h
+++ b/src/script/cpp_api/s_client.h
@@ -40,8 +40,6 @@ public:
// Calls on_shutdown handlers
void on_shutdown();
- void on_connect();
-
// Chat message handlers
bool on_sending_message(const std::string &message);
bool on_receiving_message(const std::string &message);