@@ -46,8 +46,6 @@ namespace CoreBind {
4646
4747// //// ResourceLoader //////
4848
49- ResourceLoader *ResourceLoader::singleton = nullptr ;
50-
5149Error ResourceLoader::load_threaded_request (const String &p_path, const String &p_type_hint, bool p_use_sub_threads, CacheMode p_cache_mode) {
5250 return ::ResourceLoader::load_threaded_request (p_path, p_type_hint, p_use_sub_threads, ResourceFormatLoader::CacheMode (p_cache_mode));
5351}
@@ -195,8 +193,6 @@ ResourceUID::ID ResourceSaver::get_resource_id_for_path(const String &p_path, bo
195193 return ::ResourceSaver::get_resource_id_for_path (p_path, p_generate);
196194}
197195
198- ResourceSaver *ResourceSaver::singleton = nullptr ;
199-
200196void ResourceSaver::_bind_methods () {
201197 ClassDB::bind_method (D_METHOD (" save" , " resource" , " path" , " flags" ), &ResourceSaver::save, DEFVAL (" " ), DEFVAL ((uint32_t )FLAG_NONE));
202198 ClassDB::bind_method (D_METHOD (" set_uid" , " resource" , " uid" ), &ResourceSaver::set_uid);
@@ -722,8 +718,6 @@ void OS::remove_logger(const Ref<Logger> &p_logger) {
722718 logger_bind->loggers .erase (p_logger);
723719}
724720
725- OS *OS::singleton = nullptr ;
726-
727721void OS::_bind_methods () {
728722 ClassDB::bind_method (D_METHOD (" get_entropy" , " size" ), &OS::get_entropy);
729723 ClassDB::bind_method (D_METHOD (" get_system_ca_certificates" ), &OS::get_system_ca_certificates);
@@ -877,8 +871,6 @@ OS::~OS() {
877871
878872// //// Geometry2D //////
879873
880- Geometry2D *Geometry2D::singleton = nullptr ;
881-
882874Geometry2D *Geometry2D::get_singleton () {
883875 return singleton;
884876}
@@ -1138,8 +1130,6 @@ void Geometry2D::_bind_methods() {
11381130
11391131// //// Geometry3D //////
11401132
1141- Geometry3D *Geometry3D::singleton = nullptr ;
1142-
11431133Geometry3D *Geometry3D::get_singleton () {
11441134 return singleton;
11451135}
@@ -1282,8 +1272,6 @@ void Geometry3D::_bind_methods() {
12821272
12831273// //// Marshalls //////
12841274
1285- Marshalls *Marshalls::singleton = nullptr ;
1286-
12871275Marshalls *Marshalls::get_singleton () {
12881276 return singleton;
12891277}
@@ -2128,8 +2116,6 @@ void Engine::_bind_methods() {
21282116 ADD_PROPERTY (PropertyInfo (Variant::FLOAT, " physics_jitter_fix" ), " set_physics_jitter_fix" , " get_physics_jitter_fix" );
21292117}
21302118
2131- Engine *Engine::singleton = nullptr ;
2132-
21332119// //// EngineDebugger //////
21342120
21352121bool EngineDebugger::is_active () {
@@ -2275,8 +2261,6 @@ EngineDebugger::~EngineDebugger() {
22752261 captures.clear ();
22762262}
22772263
2278- EngineDebugger *EngineDebugger::singleton = nullptr ;
2279-
22802264void EngineDebugger::_bind_methods () {
22812265 ClassDB::bind_method (D_METHOD (" is_active" ), &EngineDebugger::is_active);
22822266
0 commit comments