From e769c0392e962b36f697a2cec083135e84e1f126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Wed, 26 Feb 2025 21:37:07 +0100 Subject: [PATCH] Cleanup: [Script] Remove some dead code (#13660) --- cmake/scripts/SquirrelExport.cmake | 2 +- src/script/api/script_controller.hpp | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/cmake/scripts/SquirrelExport.cmake b/cmake/scripts/SquirrelExport.cmake index 88f769b8d0..501ff95480 100644 --- a/cmake/scripts/SquirrelExport.cmake +++ b/cmake/scripts/SquirrelExport.cmake @@ -347,7 +347,7 @@ foreach(LINE IN LISTS SOURCE_LINES) string(APPEND SQUIRREL_EXPORT "\nvoid SQ${API_CLS}_Register(Squirrel *engine)") string(APPEND SQUIRREL_EXPORT "\n{") string(APPEND SQUIRREL_EXPORT "\n DefSQClass<${CLS}, ScriptType::${APIUC}> SQ${API_CLS}(\"${API_CLS}\");") - if("${SUPER_CLS}" STREQUAL "Text" OR "${SUPER_CLS}" STREQUAL "ScriptObject" OR "${SUPER_CLS}" STREQUAL "AIAbstractiveList::Valuator") + if("${SUPER_CLS}" STREQUAL "Text" OR "${SUPER_CLS}" STREQUAL "ScriptObject") string(APPEND SQUIRREL_EXPORT "\n SQ${API_CLS}.PreRegister(engine);") else() string(APPEND SQUIRREL_EXPORT "\n SQ${API_CLS}.PreRegister(engine, \"${API_SUPER_CLS}\");") diff --git a/src/script/api/script_controller.hpp b/src/script/api/script_controller.hpp index a76d1b5344..85ccbad3f4 100644 --- a/src/script/api/script_controller.hpp +++ b/src/script/api/script_controller.hpp @@ -209,11 +209,6 @@ private: uint ticks; ///< The amount of ticks we're sleeping. LoadedLibraryList loaded_library; ///< The libraries we loaded. int loaded_library_count; ///< The amount of libraries. - - /** - * Register all classes that are known inside the script API. - */ - void RegisterClasses(); }; #endif /* SCRIPT_CONTROLLER_HPP */