From 0e58a709ff347f43ef54ed3d6eab0a2fa7832367 Mon Sep 17 00:00:00 2001 From: glx22 Date: Tue, 25 Feb 2025 21:41:50 +0100 Subject: [PATCH] Cleanup: [Script] Remove some dead code --- 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 */