mirror of https://github.com/OpenTTD/OpenTTD
Cleanup: [Script] Remove some dead code (#13660)
parent
f10ece41f8
commit
e769c0392e
|
@ -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}\");")
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue