1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-20 14:45:44 +00:00

Remove empty constructors and destructors from core/

This commit is contained in:
kobewi
2025-11-14 23:24:54 +01:00
parent 68410acc61
commit e14263f917
67 changed files with 1 additions and 168 deletions

View File

@@ -559,9 +559,6 @@ public:
#ifdef TOOLS_ENABLED #ifdef TOOLS_ENABLED
virtual void get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const override; virtual void get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const override;
#endif #endif
ClassDB() {}
~ClassDB() {}
}; };
} // namespace Special } // namespace Special

View File

@@ -110,6 +110,3 @@ void AESContext::_bind_methods() {
BIND_ENUM_CONSTANT(MODE_CBC_DECRYPT); BIND_ENUM_CONSTANT(MODE_CBC_DECRYPT);
BIND_ENUM_CONSTANT(MODE_MAX); BIND_ENUM_CONSTANT(MODE_MAX);
} }
AESContext::AESContext() {
}

View File

@@ -58,8 +58,6 @@ public:
PackedByteArray update(const PackedByteArray &p_src); PackedByteArray update(const PackedByteArray &p_src);
PackedByteArray get_iv_state(); PackedByteArray get_iv_state();
void finish(); void finish();
AESContext();
}; };
VARIANT_ENUM_CAST(AESContext::Mode); VARIANT_ENUM_CAST(AESContext::Mode);

View File

@@ -114,7 +114,6 @@ public:
virtual Error update(const PackedByteArray &p_data) = 0; virtual Error update(const PackedByteArray &p_data) = 0;
virtual PackedByteArray finish() = 0; virtual PackedByteArray finish() = 0;
HMACContext() {}
virtual ~HMACContext() {} virtual ~HMACContext() {}
}; };
@@ -144,8 +143,6 @@ public:
// Compares two PackedByteArrays for equality without leaking timing information in order to prevent timing attacks. // Compares two PackedByteArrays for equality without leaking timing information in order to prevent timing attacks.
// @see: https://paragonie.com/blog/2015/11/preventing-timing-attacks-on-string-comparison-with-double-hmac-strategy // @see: https://paragonie.com/blog/2015/11/preventing-timing-attacks-on-string-comparison-with-double-hmac-strategy
bool constant_time_compare(const PackedByteArray &p_trusted, const PackedByteArray &p_received); bool constant_time_compare(const PackedByteArray &p_trusted, const PackedByteArray &p_received);
Crypto() {}
}; };
class ResourceFormatLoaderCrypto : public ResourceFormatLoader { class ResourceFormatLoaderCrypto : public ResourceFormatLoader {

View File

@@ -56,7 +56,6 @@ public:
Error update(const PackedByteArray &p_chunk); Error update(const PackedByteArray &p_chunk);
PackedByteArray finish(); PackedByteArray finish();
HashingContext() {}
~HashingContext(); ~HashingContext();
}; };

View File

@@ -46,7 +46,6 @@ struct DebuggerMarshalls {
struct ScriptStackDump { struct ScriptStackDump {
List<ScriptLanguage::StackInfo> frames; List<ScriptLanguage::StackInfo> frames;
ScriptStackDump() {}
Array serialize(); Array serialize();
bool deserialize(const Array &p_arr); bool deserialize(const Array &p_arr);

View File

@@ -55,6 +55,5 @@ public:
GDVIRTUAL1(_add_frame, Array); GDVIRTUAL1(_add_frame, Array);
GDVIRTUAL4(_tick, double, double, double, double); GDVIRTUAL4(_tick, double, double, double, double);
EngineProfiler() {}
virtual ~EngineProfiler(); virtual ~EngineProfiler();
}; };

View File

@@ -82,5 +82,4 @@ public:
void send_error(const String &p_func, const String &p_file, int p_line, const String &p_err, const String &p_descr, bool p_editor_notify, ErrorHandlerType p_type, const Vector<StackInfo> &p_stack_info); void send_error(const String &p_func, const String &p_file, int p_line, const String &p_err, const String &p_descr, bool p_editor_notify, ErrorHandlerType p_type, const Vector<StackInfo> &p_stack_info);
Vector<StackInfo> get_error_stack_info() const; Vector<StackInfo> get_error_stack_info() const;
ScriptDebugger() {}
}; };

View File

@@ -69,8 +69,6 @@ struct ErrorHandlerList {
void *userdata = nullptr; void *userdata = nullptr;
ErrorHandlerList *next = nullptr; ErrorHandlerList *next = nullptr;
ErrorHandlerList() {}
}; };
void add_error_handler(ErrorHandlerList *p_handler); void add_error_handler(ErrorHandlerList *p_handler);

View File

@@ -802,9 +802,6 @@ void GDExtension::_bind_methods() {
BIND_ENUM_CONSTANT(INITIALIZATION_LEVEL_EDITOR); BIND_ENUM_CONSTANT(INITIALIZATION_LEVEL_EDITOR);
} }
GDExtension::GDExtension() {
}
GDExtension::~GDExtension() { GDExtension::~GDExtension() {
if (is_library_open()) { if (is_library_open()) {
close_library(); close_library();

View File

@@ -177,7 +177,6 @@ public:
static void initialize_gdextensions(); static void initialize_gdextensions();
static void finalize_gdextensions(); static void finalize_gdextensions();
GDExtension();
~GDExtension(); ~GDExtension();
}; };

View File

@@ -90,8 +90,6 @@ public:
virtual bool accumulate(const Ref<InputEvent> &p_event) { return false; } virtual bool accumulate(const Ref<InputEvent> &p_event) { return false; }
virtual InputEventType get_type() const { return InputEventType::INVALID; } virtual InputEventType get_type() const { return InputEventType::INVALID; }
InputEvent() {}
}; };
class InputEventFromWindow : public InputEvent { class InputEventFromWindow : public InputEvent {
@@ -105,8 +103,6 @@ protected:
public: public:
void set_window_id(int64_t p_id); void set_window_id(int64_t p_id);
int64_t get_window_id() const; int64_t get_window_id() const;
InputEventFromWindow() {}
}; };
class InputEventWithModifiers : public InputEventFromWindow { class InputEventWithModifiers : public InputEventFromWindow {
@@ -147,8 +143,6 @@ public:
virtual String as_text() const override; virtual String as_text() const override;
virtual String _to_string() override; virtual String _to_string() override;
InputEventWithModifiers() {}
}; };
class InputEventKey : public InputEventWithModifiers { class InputEventKey : public InputEventWithModifiers {
@@ -205,8 +199,6 @@ public:
static Ref<InputEventKey> create_reference(Key p_keycode_with_modifier_masks, bool p_physical = false); static Ref<InputEventKey> create_reference(Key p_keycode_with_modifier_masks, bool p_physical = false);
InputEventType get_type() const final override { return InputEventType::KEY; } InputEventType get_type() const final override { return InputEventType::KEY; }
InputEventKey() {}
}; };
class InputEventMouse : public InputEventWithModifiers { class InputEventMouse : public InputEventWithModifiers {
@@ -229,8 +221,6 @@ public:
void set_global_position(const Vector2 &p_global_pos); void set_global_position(const Vector2 &p_global_pos);
Vector2 get_global_position() const; Vector2 get_global_position() const;
InputEventMouse() {}
}; };
class InputEventMouseButton : public InputEventMouse { class InputEventMouseButton : public InputEventMouse {
@@ -266,8 +256,6 @@ public:
virtual String _to_string() override; virtual String _to_string() override;
InputEventType get_type() const final override { return InputEventType::MOUSE_BUTTON; } InputEventType get_type() const final override { return InputEventType::MOUSE_BUTTON; }
InputEventMouseButton() {}
}; };
class InputEventMouseMotion : public InputEventMouse { class InputEventMouseMotion : public InputEventMouse {
@@ -313,8 +301,6 @@ public:
virtual bool accumulate(const Ref<InputEvent> &p_event) override; virtual bool accumulate(const Ref<InputEvent> &p_event) override;
InputEventType get_type() const final override { return InputEventType::MOUSE_MOTION; } InputEventType get_type() const final override { return InputEventType::MOUSE_MOTION; }
InputEventMouseMotion() {}
}; };
class InputEventJoypadMotion : public InputEvent { class InputEventJoypadMotion : public InputEvent {
@@ -343,8 +329,6 @@ public:
static Ref<InputEventJoypadMotion> create_reference(JoyAxis p_axis, float p_value, int p_device = -1); static Ref<InputEventJoypadMotion> create_reference(JoyAxis p_axis, float p_value, int p_device = -1);
InputEventType get_type() const final override { return InputEventType::JOY_MOTION; } InputEventType get_type() const final override { return InputEventType::JOY_MOTION; }
InputEventJoypadMotion() {}
}; };
class InputEventJoypadButton : public InputEvent { class InputEventJoypadButton : public InputEvent {
@@ -376,8 +360,6 @@ public:
static Ref<InputEventJoypadButton> create_reference(JoyButton p_btn_index, int p_device = -1); static Ref<InputEventJoypadButton> create_reference(JoyButton p_btn_index, int p_device = -1);
InputEventType get_type() const final override { return InputEventType::JOY_BUTTON; } InputEventType get_type() const final override { return InputEventType::JOY_BUTTON; }
InputEventJoypadButton() {}
}; };
class InputEventScreenTouch : public InputEventFromWindow { class InputEventScreenTouch : public InputEventFromWindow {
@@ -407,8 +389,6 @@ public:
virtual String _to_string() override; virtual String _to_string() override;
InputEventType get_type() const final override { return InputEventType::SCREEN_TOUCH; } InputEventType get_type() const final override { return InputEventType::SCREEN_TOUCH; }
InputEventScreenTouch() {}
}; };
class InputEventScreenDrag : public InputEventFromWindow { class InputEventScreenDrag : public InputEventFromWindow {
@@ -461,8 +441,6 @@ public:
virtual bool accumulate(const Ref<InputEvent> &p_event) override; virtual bool accumulate(const Ref<InputEvent> &p_event) override;
InputEventType get_type() const final override { return InputEventType::SCREEN_DRAG; } InputEventType get_type() const final override { return InputEventType::SCREEN_DRAG; }
InputEventScreenDrag() {}
}; };
class InputEventAction : public InputEvent { class InputEventAction : public InputEvent {
@@ -498,8 +476,6 @@ public:
virtual String _to_string() override; virtual String _to_string() override;
InputEventType get_type() const final override { return InputEventType::ACTION; } InputEventType get_type() const final override { return InputEventType::ACTION; }
InputEventAction() {}
}; };
class InputEventGesture : public InputEventWithModifiers { class InputEventGesture : public InputEventWithModifiers {
@@ -531,8 +507,6 @@ public:
virtual String _to_string() override; virtual String _to_string() override;
InputEventType get_type() const final override { return InputEventType::MAGNIFY_GESTURE; } InputEventType get_type() const final override { return InputEventType::MAGNIFY_GESTURE; }
InputEventMagnifyGesture() {}
}; };
class InputEventPanGesture : public InputEventGesture { class InputEventPanGesture : public InputEventGesture {
@@ -551,8 +525,6 @@ public:
virtual String _to_string() override; virtual String _to_string() override;
InputEventType get_type() const final override { return InputEventType::PAN_GESTURE; } InputEventType get_type() const final override { return InputEventType::PAN_GESTURE; }
InputEventPanGesture() {}
}; };
class InputEventMIDI : public InputEvent { class InputEventMIDI : public InputEvent {
@@ -599,8 +571,6 @@ public:
virtual String _to_string() override; virtual String _to_string() override;
InputEventType get_type() const final override { return InputEventType::MIDI; } InputEventType get_type() const final override { return InputEventType::MIDI; }
InputEventMIDI() {}
}; };
class InputEventShortcut : public InputEvent { class InputEventShortcut : public InputEvent {

View File

@@ -171,6 +171,5 @@ public:
virtual bool is_equivalent(const String &p_path_a, const String &p_path_b) const; virtual bool is_equivalent(const String &p_path_a, const String &p_path_b) const;
public: public:
DirAccess() {}
virtual ~DirAccess(); virtual ~DirAccess();
}; };

View File

@@ -49,6 +49,4 @@ public:
virtual Error setup(Ref<TLSOptions> p_options) = 0; virtual Error setup(Ref<TLSOptions> p_options) = 0;
virtual void stop() = 0; virtual void stop() = 0;
virtual Ref<PacketPeerDTLS> take_connection(Ref<PacketPeerUDP> p_peer) = 0; virtual Ref<PacketPeerDTLS> take_connection(Ref<PacketPeerUDP> p_peer) = 0;
DTLSServer() {}
}; };

View File

@@ -275,7 +275,6 @@ public:
} }
public: public:
FileAccess() {}
virtual ~FileAccess(); virtual ~FileAccess();
}; };

View File

@@ -106,6 +106,5 @@ public:
virtual void close() override; virtual void close() override;
FileAccessCompressed() {}
virtual ~FileAccessCompressed(); virtual ~FileAccessCompressed();
}; };

View File

@@ -105,6 +105,5 @@ public:
static void deinitialize(); static void deinitialize();
FileAccessEncrypted() {}
~FileAccessEncrypted(); ~FileAccessEncrypted();
}; };

View File

@@ -78,6 +78,4 @@ public:
virtual Error _set_read_only_attribute(const String &p_file, bool p_ro) override { return ERR_UNAVAILABLE; } virtual Error _set_read_only_attribute(const String &p_file, bool p_ro) override { return ERR_UNAVAILABLE; }
virtual void close() override {} virtual void close() override {}
FileAccessMemory() {}
}; };

View File

@@ -41,7 +41,6 @@ public:
struct File { struct File {
int package = -1; int package = -1;
unz_file_pos file_pos; unz_file_pos file_pos;
File() {}
}; };
private: private:

View File

@@ -197,7 +197,6 @@ public:
virtual void set_http_proxy(const String &p_host, int p_port); virtual void set_http_proxy(const String &p_host, int p_port);
virtual void set_https_proxy(const String &p_host, int p_port); virtual void set_https_proxy(const String &p_host, int p_port);
HTTPClient() {}
virtual ~HTTPClient() {} virtual ~HTTPClient() {}
}; };

View File

@@ -376,8 +376,6 @@ public:
Image(const uint8_t *p_mem_png_jpg, int p_len = -1); // Import either a png or jpg from a pointer. Image(const uint8_t *p_mem_png_jpg, int p_len = -1); // Import either a png or jpg from a pointer.
Image(const char **p_xpm); // Import an XPM image. Image(const char **p_xpm); // Import an XPM image.
~Image() {}
AlphaMode detect_alpha() const; AlphaMode detect_alpha() const;
bool is_invisible() const; bool is_invisible() const;

View File

@@ -217,8 +217,6 @@ protected:
public: public:
void set_object_id(ObjectID p_id); void set_object_id(ObjectID p_id);
ObjectID get_object_id() const; ObjectID get_object_id() const;
EncodedObjectAsID() {}
}; };
Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int *r_len = nullptr, bool p_allow_objects = false, int p_depth = 0); Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int *r_len = nullptr, bool p_allow_objects = false, int p_depth = 0);

View File

@@ -89,6 +89,3 @@ void MissingResource::_bind_methods() {
ADD_PROPERTY(PropertyInfo(Variant::STRING, "original_class", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NONE), "set_original_class", "get_original_class"); ADD_PROPERTY(PropertyInfo(Variant::STRING, "original_class", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NONE), "set_original_class", "get_original_class");
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "recording_properties", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NONE), "set_recording_properties", "is_recording_properties"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "recording_properties", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NONE), "set_recording_properties", "is_recording_properties");
} }
MissingResource::MissingResource() {
}

View File

@@ -57,6 +57,4 @@ public:
bool is_recording_properties() const; bool is_recording_properties() const;
virtual String get_save_class() const override; virtual String get_save_class() const override;
MissingResource();
}; };

View File

@@ -75,8 +75,6 @@ public:
Error pack(const Variant &p_data); Error pack(const Variant &p_data);
int size() const; int size() const;
PackedDataContainer() {}
}; };
class PackedDataContainerRef : public RefCounted { class PackedDataContainerRef : public RefCounted {
@@ -96,6 +94,4 @@ public:
int size() const; int size() const;
virtual Variant getvar(const Variant &p_key, bool *r_valid = nullptr) const override; virtual Variant getvar(const Variant &p_key, bool *r_valid = nullptr) const override;
PackedDataContainerRef() {}
}; };

View File

@@ -71,9 +71,6 @@ public:
void set_encode_buffer_max_size(int p_max_size); void set_encode_buffer_max_size(int p_max_size);
int get_encode_buffer_max_size() const; int get_encode_buffer_max_size() const;
PacketPeer() {}
~PacketPeer() {}
}; };
class PacketPeerExtension : public PacketPeer { class PacketPeerExtension : public PacketPeer {

View File

@@ -58,8 +58,6 @@ public:
static PacketPeerDTLS *create(bool p_notify_postinitialize = true); static PacketPeerDTLS *create(bool p_notify_postinitialize = true);
static bool is_available(); static bool is_available();
PacketPeerDTLS() {}
}; };
VARIANT_ENUM_CAST(PacketPeerDTLS::Status); VARIANT_ENUM_CAST(PacketPeerDTLS::Status);

View File

@@ -66,6 +66,5 @@ public:
Error add_file_removal(const String &p_target_path); Error add_file_removal(const String &p_target_path);
Error flush(bool p_verbose = false); Error flush(bool p_verbose = false);
PCKPacker() {}
~PCKPacker(); ~PCKPacker();
}; };

View File

@@ -121,7 +121,4 @@ public:
void store_asn1_size(PackedByteArray &p_stream, uint8_t p_len_octets) const; void store_asn1_size(PackedByteArray &p_stream, uint8_t p_len_octets) const;
bool store_asn1(PackedByteArray &p_stream, uint8_t p_len_octets) const; bool store_asn1(PackedByteArray &p_stream, uint8_t p_len_octets) const;
void store_text(String &p_stream, uint8_t p_indent) const; void store_text(String &p_stream, uint8_t p_indent) const;
PListNode() {}
~PListNode() {}
}; };

View File

@@ -104,8 +104,6 @@ public:
String recognize_script_class(Ref<FileAccess> p_f); String recognize_script_class(Ref<FileAccess> p_f);
void get_dependencies(Ref<FileAccess> p_f, List<String> *p_dependencies, bool p_add_types); void get_dependencies(Ref<FileAccess> p_f, List<String> *p_dependencies, bool p_add_types);
void get_classes_used(Ref<FileAccess> p_f, HashSet<StringName> *p_classes); void get_classes_used(Ref<FileAccess> p_f, HashSet<StringName> *p_classes);
ResourceLoaderBinary() {}
}; };
class ResourceFormatLoaderBinary : public ResourceFormatLoader { class ResourceFormatLoaderBinary : public ResourceFormatLoader {

View File

@@ -97,8 +97,6 @@ public:
String get_string(int p_bytes = -1); String get_string(int p_bytes = -1);
String get_utf8_string(int p_bytes = -1); String get_utf8_string(int p_bytes = -1);
Variant get_var(bool p_allow_objects = false); Variant get_var(bool p_allow_objects = false);
StreamPeer() {}
}; };
class StreamPeerExtension : public StreamPeer { class StreamPeerExtension : public StreamPeer {
@@ -152,6 +150,4 @@ public:
void clear(); void clear();
Ref<StreamPeerBuffer> duplicate() const; Ref<StreamPeerBuffer> duplicate() const;
StreamPeerBuffer() {}
}; };

View File

@@ -40,9 +40,6 @@ void StreamPeerGZIP::_bind_methods() {
ClassDB::bind_method(D_METHOD("clear"), &StreamPeerGZIP::clear); ClassDB::bind_method(D_METHOD("clear"), &StreamPeerGZIP::clear);
} }
StreamPeerGZIP::StreamPeerGZIP() {
}
StreamPeerGZIP::~StreamPeerGZIP() { StreamPeerGZIP::~StreamPeerGZIP() {
_close(); _close();
} }

View File

@@ -68,6 +68,5 @@ public:
virtual int get_available_bytes() const override; virtual int get_available_bytes() const override;
StreamPeerGZIP();
~StreamPeerGZIP(); ~StreamPeerGZIP();
}; };

View File

@@ -60,8 +60,6 @@ public:
static StreamPeerTLS *create(bool p_notify_postinitialize = true); static StreamPeerTLS *create(bool p_notify_postinitialize = true);
static bool is_available(); static bool is_available();
StreamPeerTLS() {}
}; };
VARIANT_ENUM_CAST(StreamPeerTLS::Status); VARIANT_ENUM_CAST(StreamPeerTLS::Status);

View File

@@ -46,6 +46,4 @@ public:
// Treat translations as text/binary files, do not generate a `*.{po,mo}.uid` file. // Treat translations as text/binary files, do not generate a `*.{po,mo}.uid` file.
virtual ResourceUID::ID get_resource_uid(const String &p_path) const override { return ResourceUID::INVALID_ID; } virtual ResourceUID::ID get_resource_uid(const String &p_path) const override { return ResourceUID::INVALID_ID; }
virtual bool has_custom_uid_support() const override { return true; } virtual bool has_custom_uid_support() const override { return true; }
TranslationLoaderPO() {}
}; };

View File

@@ -43,8 +43,6 @@ class AStar3D : public RefCounted {
friend class AStar2D; friend class AStar2D;
struct Point { struct Point {
Point() {}
int64_t id = 0; int64_t id = 0;
Vector3 pos; Vector3 pos;
real_t weight_scale = 0; real_t weight_scale = 0;
@@ -167,7 +165,6 @@ public:
Vector<Vector3> get_point_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false); Vector<Vector3> get_point_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false);
Vector<int64_t> get_id_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false); Vector<int64_t> get_id_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false);
AStar3D() {}
~AStar3D(); ~AStar3D();
}; };
@@ -226,7 +223,4 @@ public:
Vector<Vector2> get_point_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false); Vector<Vector2> get_point_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false);
Vector<int64_t> get_id_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false); Vector<int64_t> get_id_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false);
AStar2D() {}
~AStar2D() {}
}; };

View File

@@ -799,9 +799,6 @@ private:
// local toggle for turning on and off thread safety in project settings // local toggle for turning on and off thread safety in project settings
bool _thread_safe = BVH_THREAD_SAFE; bool _thread_safe = BVH_THREAD_SAFE;
public:
BVH_Manager() {}
}; };
#undef BVHTREE_CLASS #undef BVHTREE_CLASS

View File

@@ -39,8 +39,6 @@ private:
struct Input { struct Input {
Variant::Type type = Variant::NIL; Variant::Type type = Variant::NIL;
String name; String name;
Input() {}
}; };
Vector<Input> inputs; Vector<Input> inputs;
@@ -135,7 +133,6 @@ private:
Type type = TYPE_INPUT; Type type = TYPE_INPUT;
ENode() {}
virtual ~ENode() { virtual ~ENode() {
if (next) { if (next) {
memdelete(next); memdelete(next);
@@ -267,6 +264,5 @@ public:
bool has_execute_failed() const; bool has_execute_failed() const;
String get_error_text() const; String get_error_text() const;
Expression() {}
~Expression(); ~Expression();
}; };

View File

@@ -186,13 +186,11 @@ struct _FaceClassify {
face = -1; face = -1;
edge = -1; edge = -1;
} }
_Link() {}
}; };
bool valid = false; bool valid = false;
int group = -1; int group = -1;
_Link links[3]; _Link links[3];
Face3 face; Face3 face;
_FaceClassify() {}
}; };
/*** GEOMETRY WRAPPER ***/ /*** GEOMETRY WRAPPER ***/

View File

@@ -76,12 +76,10 @@ private:
struct FaceConnect { struct FaceConnect {
List<Face>::Element *left = nullptr; List<Face>::Element *left = nullptr;
List<Face>::Element *right = nullptr; List<Face>::Element *right = nullptr;
FaceConnect() {}
}; };
struct RetFaceConnect { struct RetFaceConnect {
List<Geometry3D::MeshData::Face>::Element *left = nullptr; List<Geometry3D::MeshData::Face>::Element *left = nullptr;
List<Geometry3D::MeshData::Face>::Element *right = nullptr; List<Geometry3D::MeshData::Face>::Element *right = nullptr;
RetFaceConnect() {}
}; };
public: public:

View File

@@ -93,8 +93,6 @@ public:
class_name = p_class_name; class_name = p_class_name;
} }
~PlaceholderExtensionInstance() {}
void set(const StringName &p_name, const Variant &p_value, bool &r_valid) { void set(const StringName &p_name, const Variant &p_value, bool &r_valid) {
r_valid = is_runtime_property(p_name); r_valid = is_runtime_property(p_name);
if (r_valid) { if (r_valid) {

View File

@@ -165,9 +165,6 @@ public:
bool is_runtime = false; bool is_runtime = false;
// The bool argument indicates the need to postinitialize. // The bool argument indicates the need to postinitialize.
Object *(*creation_func)(bool) = nullptr; Object *(*creation_func)(bool) = nullptr;
ClassInfo() {}
~ClassInfo() {}
}; };
template <typename T> template <typename T>

View File

@@ -51,7 +51,6 @@ public:
int get_reference_count() const; int get_reference_count() const;
RefCounted(); RefCounted();
~RefCounted() {}
}; };
template <typename T> template <typename T>
@@ -237,8 +236,6 @@ public:
Variant get_ref() const; Variant get_ref() const;
void set_obj(Object *p_object); void set_obj(Object *p_object);
void set_ref(const Ref<RefCounted> &p_ref); void set_ref(const Ref<RefCounted> &p_ref);
WeakRef() {}
}; };
template <typename T> template <typename T>

View File

@@ -88,6 +88,3 @@ Variant ScriptInstance::property_get_fallback(const StringName &, bool *r_valid)
const Variant ScriptInstance::get_rpc_config() const { const Variant ScriptInstance::get_rpc_config() const {
return get_script()->get_rpc_config(); return get_script()->get_rpc_config();
} }
ScriptInstance::~ScriptInstance() {
}

View File

@@ -93,5 +93,5 @@ public:
virtual const Variant get_rpc_config() const; virtual const Variant get_rpc_config() const;
virtual ScriptLanguage *get_language() = 0; virtual ScriptLanguage *get_language() = 0;
virtual ~ScriptInstance(); virtual ~ScriptInstance() {}
}; };

View File

@@ -214,8 +214,6 @@ public:
GDVIRTUAL_CALL(_get_rpc_config, ret); GDVIRTUAL_CALL(_get_rpc_config, ret);
return ret; return ret;
} }
ScriptExtension() {}
}; };
typedef ScriptLanguage::ProfilingInfo ScriptLanguageExtensionProfilingInfo; typedef ScriptLanguage::ProfilingInfo ScriptLanguageExtensionProfilingInfo;

View File

@@ -145,7 +145,6 @@ public:
void set_method_notify_callback(MethodNotifyCallback p_method_callback, void *p_ud); void set_method_notify_callback(MethodNotifyCallback p_method_callback, void *p_ud);
void set_property_notify_callback(PropertyNotifyCallback p_property_callback, void *p_ud); void set_property_notify_callback(PropertyNotifyCallback p_property_callback, void *p_ud);
UndoRedo() {}
~UndoRedo(); ~UndoRedo();
}; };

View File

@@ -66,6 +66,5 @@ public:
virtual bool process(double p_time); virtual bool process(double p_time);
virtual void finalize(); virtual void finalize();
MainLoop() {}
virtual ~MainLoop() {} virtual ~MainLoop() {}
}; };

View File

@@ -136,7 +136,6 @@ template <int Tag>
class MutexLock<SafeBinaryMutex<Tag>> { class MutexLock<SafeBinaryMutex<Tag>> {
public: public:
MutexLock(const SafeBinaryMutex<Tag> &p_mutex) {} MutexLock(const SafeBinaryMutex<Tag> &p_mutex) {}
~MutexLock() {}
void temp_relock() const {} void temp_relock() const {}
void temp_unlock() const {} void temp_unlock() const {}

View File

@@ -96,9 +96,6 @@ Error Thread::set_name(const String &p_name) {
return ERR_UNAVAILABLE; return ERR_UNAVAILABLE;
} }
Thread::Thread() {
}
Thread::~Thread() { Thread::~Thread() {
if (id != UNASSIGNED_ID) { if (id != UNASSIGNED_ID) {
#ifdef DEBUG_ENABLED #ifdef DEBUG_ENABLED

View File

@@ -138,7 +138,6 @@ public:
///< waits until thread is finished, and deallocates it. ///< waits until thread is finished, and deallocates it.
void wait_to_finish(); void wait_to_finish();
Thread();
~Thread(); ~Thread();
}; };

View File

@@ -99,6 +99,4 @@ public:
virtual void get_message_list(List<StringName> *r_messages) const override; virtual void get_message_list(List<StringName> *r_messages) const override;
virtual int get_message_count() const override; virtual int get_message_count() const override;
OptimizedTranslation() {}
}; };

View File

@@ -44,8 +44,6 @@ struct PrintHandlerList {
void *userdata = nullptr; void *userdata = nullptr;
PrintHandlerList *next = nullptr; PrintHandlerList *next = nullptr;
PrintHandlerList() {}
}; };
String stringify_variants(const Span<Variant> &p_vars); String stringify_variants(const Span<Variant> &p_vars);

View File

@@ -76,6 +76,4 @@ public:
_FORCE_INLINE_ operator String() const { _FORCE_INLINE_ operator String() const {
return as_string(); return as_string();
} }
StringBuilder() {}
}; };

View File

@@ -51,7 +51,6 @@ class [[nodiscard]] StringName {
uint32_t hash = 0; uint32_t hash = 0;
_Data *prev = nullptr; _Data *prev = nullptr;
_Data *next = nullptr; _Data *next = nullptr;
_Data() {}
}; };
_Data *_data = nullptr; _Data *_data = nullptr;

View File

@@ -501,6 +501,3 @@ void TranslationDomain::_bind_methods() {
ADD_PROPERTY(PropertyInfo(Variant::Type::STRING, "pseudolocalization_prefix"), "set_pseudolocalization_prefix", "get_pseudolocalization_prefix"); ADD_PROPERTY(PropertyInfo(Variant::Type::STRING, "pseudolocalization_prefix"), "set_pseudolocalization_prefix", "get_pseudolocalization_prefix");
ADD_PROPERTY(PropertyInfo(Variant::Type::STRING, "pseudolocalization_suffix"), "set_pseudolocalization_suffix", "get_pseudolocalization_suffix"); ADD_PROPERTY(PropertyInfo(Variant::Type::STRING, "pseudolocalization_suffix"), "set_pseudolocalization_suffix", "get_pseudolocalization_suffix");
} }
TranslationDomain::TranslationDomain() {
}

View File

@@ -110,6 +110,4 @@ public:
void set_pseudolocalization_suffix(const String &p_suffix); void set_pseudolocalization_suffix(const String &p_suffix);
StringName pseudolocalize(const StringName &p_message) const; StringName pseudolocalize(const StringName &p_message) const;
TranslationDomain();
}; };

View File

@@ -134,8 +134,6 @@ public:
} }
void transfer_to_back(List<T, A> *p_dst_list); void transfer_to_back(List<T, A> *p_dst_list);
_FORCE_INLINE_ Element() {}
}; };
typedef T ValueType; typedef T ValueType;

View File

@@ -78,7 +78,6 @@ public:
const T &get() const { const T &get() const {
return value; return value;
} }
Element() {}
}; };
typedef T ValueType; typedef T ValueType;

View File

@@ -71,8 +71,6 @@ public:
_ALWAYS_INLINE_ uint64_t get_id() const { return _id; } _ALWAYS_INLINE_ uint64_t get_id() const { return _id; }
uint32_t hash() const { return HashMapHasherDefault::hash(_id); } uint32_t hash() const { return HashMapHasherDefault::hash(_id); }
_ALWAYS_INLINE_ RID() {}
}; };
template <> template <>

View File

@@ -213,5 +213,4 @@ public:
RingBuffer(int p_power = 0) { RingBuffer(int p_power = 0) {
resize(p_power); resize(p_power);
} }
~RingBuffer() {}
}; };

View File

@@ -130,7 +130,6 @@ public:
// Forbid copying, which has broken behavior. // Forbid copying, which has broken behavior.
void operator=(const List &) = delete; void operator=(const List &) = delete;
_FORCE_INLINE_ List() {}
_FORCE_INLINE_ ~List() { _FORCE_INLINE_ ~List() {
// A self list must be empty on destruction. // A self list must be empty on destruction.
DEV_ASSERT(_first == nullptr); DEV_ASSERT(_first == nullptr);

View File

@@ -320,8 +320,6 @@ public:
_cowdata(p_init) {} _cowdata(p_init) {}
_FORCE_INLINE_ Vector(const Vector &p_from) = default; _FORCE_INLINE_ Vector(const Vector &p_from) = default;
_FORCE_INLINE_ Vector(Vector &&p_from) = default; _FORCE_INLINE_ Vector(Vector &&p_from) = default;
_FORCE_INLINE_ ~Vector() {}
}; };
template <typename T> template <typename T>

View File

@@ -167,9 +167,6 @@ CallableCustomBind::CallableCustomBind(const Callable &p_callable, const Vector<
binds = p_binds; binds = p_binds;
} }
CallableCustomBind::~CallableCustomBind() {
}
////////////////////////////////// //////////////////////////////////
uint32_t CallableCustomUnbind::hash() const { uint32_t CallableCustomUnbind::hash() const {
@@ -273,6 +270,3 @@ CallableCustomUnbind::CallableCustomUnbind(const Callable &p_callable, int p_arg
callable = p_callable; callable = p_callable;
argcount = p_argcount; argcount = p_argcount;
} }
CallableCustomUnbind::~CallableCustomUnbind() {
}

View File

@@ -60,7 +60,6 @@ public:
Vector<Variant> get_binds() { return binds; } Vector<Variant> get_binds() { return binds; }
CallableCustomBind(const Callable &p_callable, const Vector<Variant> &p_binds); CallableCustomBind(const Callable &p_callable, const Vector<Variant> &p_binds);
virtual ~CallableCustomBind();
}; };
class CallableCustomUnbind : public CallableCustom { class CallableCustomUnbind : public CallableCustom {
@@ -91,5 +90,4 @@ public:
int get_unbinds() { return argcount; } int get_unbinds() { return argcount; }
CallableCustomUnbind(const Callable &p_callable, int p_argcount); CallableCustomUnbind(const Callable &p_callable, int p_argcount);
virtual ~CallableCustomUnbind();
}; };

View File

@@ -56,7 +56,6 @@ public:
virtual bool is_utf8() const = 0; virtual bool is_utf8() const = 0;
bool is_eof() const; bool is_eof() const;
Stream() {}
virtual ~Stream() {} virtual ~Stream() {}
}; };

View File

@@ -772,9 +772,6 @@ void TextEdit::_notification(int p_what) {
bool rtl = is_layout_rtl(); bool rtl = is_layout_rtl();
int lines_drawn = 0; int lines_drawn = 0;
RID selection_start;
RID selection_end;
for (int i = 0; i < text.size(); i++) { for (int i = 0; i < text.size(); i++) {
text.update_accessibility(i, ae); text.update_accessibility(i, ae);
const Ref<TextParagraph> &ac_buf = text.get_line_data(i); const Ref<TextParagraph> &ac_buf = text.get_line_data(i);