Skip to content

Commit d591bcc

Browse files
committed
Remove unnecessary cpp files
1 parent 1d8e738 commit d591bcc

25 files changed

+51
-537
lines changed

core/templates/command_queue_mt.cpp

Lines changed: 0 additions & 38 deletions
This file was deleted.

core/templates/command_queue_mt.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ class CommandQueueMT {
252252
pump_task_id = p_task_id;
253253
}
254254

255-
CommandQueueMT();
256-
~CommandQueueMT();
255+
CommandQueueMT() {
256+
command_mem.reserve(DEFAULT_COMMAND_MEM_SIZE_KB * 1024);
257+
}
257258
};

core/templates/rid_owner.cpp

Lines changed: 0 additions & 33 deletions
This file was deleted.

core/templates/rid_owner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
#endif
7676

7777
class RID_AllocBase {
78-
static SafeNumeric<uint64_t> base_id;
78+
static inline SafeNumeric<uint64_t> base_id{ 1 };
7979

8080
protected:
8181
static RID _make_from_id(uint64_t p_id) {

modules/godot_physics_2d/godot_broad_phase_2d.cpp

Lines changed: 0 additions & 36 deletions
This file was deleted.

modules/godot_physics_2d/godot_broad_phase_2d.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class GodotBroadPhase2D {
3939
public:
4040
typedef GodotBroadPhase2D *(*CreateFunction)();
4141

42-
static CreateFunction create_func;
42+
static inline CreateFunction create_func = nullptr;
4343

4444
typedef uint32_t ID;
4545

@@ -64,5 +64,5 @@ class GodotBroadPhase2D {
6464

6565
virtual void update() = 0;
6666

67-
virtual ~GodotBroadPhase2D();
67+
virtual ~GodotBroadPhase2D() {}
6868
};

modules/godot_physics_3d/godot_broad_phase_3d.cpp

Lines changed: 0 additions & 36 deletions
This file was deleted.

modules/godot_physics_3d/godot_broad_phase_3d.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class GodotBroadPhase3D {
3939
public:
4040
typedef GodotBroadPhase3D *(*CreateFunction)();
4141

42-
static CreateFunction create_func;
42+
static inline CreateFunction create_func = nullptr;
4343

4444
typedef uint32_t ID;
4545

@@ -65,5 +65,5 @@ class GodotBroadPhase3D {
6565

6666
virtual void update() = 0;
6767

68-
virtual ~GodotBroadPhase3D();
68+
virtual ~GodotBroadPhase3D() {}
6969
};

platform/web/SCsub

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ web_files = [
2727
"http_client_web.cpp",
2828
"javascript_bridge_singleton.cpp",
2929
"web_main.cpp",
30-
"ip_web.cpp",
31-
"net_socket_web.cpp",
3230
"os_web.cpp",
3331
]
3432

platform/web/ip_web.cpp

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)