Don't bind _execute() method in ThreadPoolJob derived classes, as it's not needed anymore.

This commit is contained in:
Relintai 2023-06-05 14:15:49 +02:00
parent 6589d075bb
commit 4873a3429d
8 changed files with 0 additions and 16 deletions

View File

@ -152,8 +152,6 @@ ThreadPoolExecuteJob::~ThreadPoolExecuteJob() {
}
void ThreadPoolExecuteJob::_bind_methods() {
ClassDB::bind_method(D_METHOD("_execute"), &ThreadPoolExecuteJob::_execute);
MethodInfo mi;
mi.arguments.push_back(PropertyInfo(Variant::OBJECT, "obj"));
mi.arguments.push_back(PropertyInfo(Variant::STRING, "method"));

View File

@ -63,6 +63,4 @@ void PropTextureJob::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_merger", "value"), &PropTextureJob::set_merger);
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "merger", PROPERTY_HINT_RESOURCE_TYPE, "TexturePacker"), "set_merger", "get_merger");
#endif
ClassDB::bind_method(D_METHOD("_execute"), &PropTextureJob::_execute);
}

View File

@ -162,8 +162,6 @@ void PropInstanceJob::_bind_methods() {
ClassDB::bind_method(D_METHOD("reset"), &PropInstanceJob::reset);
ClassDB::bind_method(D_METHOD("_reset"), &PropInstanceJob::_reset);
ClassDB::bind_method(D_METHOD("_execute"), &PropInstanceJob::_execute);
BIND_VMETHOD(MethodInfo("_execute_phase"));
ClassDB::bind_method(D_METHOD("execute_phase"), &PropInstanceJob::execute_phase);

View File

@ -63,6 +63,4 @@ void Prop2DTextureJob::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_merger", "value"), &Prop2DTextureJob::set_merger);
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "merger", PROPERTY_HINT_RESOURCE_TYPE, "TexturePacker"), "set_merger", "get_merger");
#endif
ClassDB::bind_method(D_METHOD("_execute"), &Prop2DTextureJob::_execute);
}

View File

@ -162,8 +162,6 @@ void Prop2DInstanceJob::_bind_methods() {
ClassDB::bind_method(D_METHOD("reset"), &Prop2DInstanceJob::reset);
ClassDB::bind_method(D_METHOD("_reset"), &Prop2DInstanceJob::_reset);
ClassDB::bind_method(D_METHOD("_execute"), &Prop2DInstanceJob::_execute);
BIND_VMETHOD(MethodInfo("_execute_phase"));
ClassDB::bind_method(D_METHOD("execute_phase"), &Prop2DInstanceJob::execute_phase);

View File

@ -325,8 +325,6 @@ void TerrainJob::_bind_methods() {
ClassDB::bind_method(D_METHOD("reset"), &TerrainJob::reset);
ClassDB::bind_method(D_METHOD("_reset"), &TerrainJob::_reset);
ClassDB::bind_method(D_METHOD("_execute"), &TerrainJob::_execute);
BIND_VMETHOD(MethodInfo("_execute_phase"));
ClassDB::bind_method(D_METHOD("execute_phase"), &TerrainJob::execute_phase);

View File

@ -301,8 +301,6 @@ void Terrain2DJob::_bind_methods() {
ClassDB::bind_method(D_METHOD("reset"), &Terrain2DJob::reset);
ClassDB::bind_method(D_METHOD("_reset"), &Terrain2DJob::_reset);
ClassDB::bind_method(D_METHOD("_execute"), &Terrain2DJob::_execute);
BIND_VMETHOD(MethodInfo("_execute_phase"));
ClassDB::bind_method(D_METHOD("execute_phase"), &Terrain2DJob::execute_phase);

View File

@ -338,8 +338,6 @@ void VoxelJob::_bind_methods() {
ClassDB::bind_method(D_METHOD("reset"), &VoxelJob::reset);
ClassDB::bind_method(D_METHOD("_reset"), &VoxelJob::_reset);
ClassDB::bind_method(D_METHOD("_execute"), &VoxelJob::_execute);
BIND_VMETHOD(MethodInfo("_execute_phase"));
ClassDB::bind_method(D_METHOD("execute_phase"), &VoxelJob::execute_phase);