diff --git a/core/core_bind.h b/core/core_bind.h index bab29c7c575..be109db6687 100644 --- a/core/core_bind.h +++ b/core/core_bind.h @@ -559,9 +559,6 @@ public: #ifdef TOOLS_ENABLED virtual void get_argument_options(const StringName &p_function, int p_idx, List *r_options) const override; #endif - - ClassDB() {} - ~ClassDB() {} }; } // namespace Special diff --git a/core/crypto/aes_context.cpp b/core/crypto/aes_context.cpp index 7596f4e0e22..53ca65021e5 100644 --- a/core/crypto/aes_context.cpp +++ b/core/crypto/aes_context.cpp @@ -110,6 +110,3 @@ void AESContext::_bind_methods() { BIND_ENUM_CONSTANT(MODE_CBC_DECRYPT); BIND_ENUM_CONSTANT(MODE_MAX); } - -AESContext::AESContext() { -} diff --git a/core/crypto/aes_context.h b/core/crypto/aes_context.h index 2ae62c84159..bc13485eff6 100644 --- a/core/crypto/aes_context.h +++ b/core/crypto/aes_context.h @@ -58,8 +58,6 @@ public: PackedByteArray update(const PackedByteArray &p_src); PackedByteArray get_iv_state(); void finish(); - - AESContext(); }; VARIANT_ENUM_CAST(AESContext::Mode); diff --git a/core/crypto/crypto.h b/core/crypto/crypto.h index f7fcccfc8e5..48bf589abec 100644 --- a/core/crypto/crypto.h +++ b/core/crypto/crypto.h @@ -114,7 +114,6 @@ public: virtual Error update(const PackedByteArray &p_data) = 0; virtual PackedByteArray finish() = 0; - HMACContext() {} virtual ~HMACContext() {} }; @@ -144,8 +143,6 @@ public: // 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 bool constant_time_compare(const PackedByteArray &p_trusted, const PackedByteArray &p_received); - - Crypto() {} }; class ResourceFormatLoaderCrypto : public ResourceFormatLoader { diff --git a/core/crypto/hashing_context.h b/core/crypto/hashing_context.h index 6c9de6a818d..c441da50562 100644 --- a/core/crypto/hashing_context.h +++ b/core/crypto/hashing_context.h @@ -56,7 +56,6 @@ public: Error update(const PackedByteArray &p_chunk); PackedByteArray finish(); - HashingContext() {} ~HashingContext(); }; diff --git a/core/debugger/debugger_marshalls.h b/core/debugger/debugger_marshalls.h index c661ef39fd7..c0f604d4ee5 100644 --- a/core/debugger/debugger_marshalls.h +++ b/core/debugger/debugger_marshalls.h @@ -46,7 +46,6 @@ struct DebuggerMarshalls { struct ScriptStackDump { List frames; - ScriptStackDump() {} Array serialize(); bool deserialize(const Array &p_arr); diff --git a/core/debugger/engine_profiler.h b/core/debugger/engine_profiler.h index f74d20b814f..ae6ddc48d47 100644 --- a/core/debugger/engine_profiler.h +++ b/core/debugger/engine_profiler.h @@ -55,6 +55,5 @@ public: GDVIRTUAL1(_add_frame, Array); GDVIRTUAL4(_tick, double, double, double, double); - EngineProfiler() {} virtual ~EngineProfiler(); }; diff --git a/core/debugger/script_debugger.h b/core/debugger/script_debugger.h index aa63d5e11e7..6f2d052f3fe 100644 --- a/core/debugger/script_debugger.h +++ b/core/debugger/script_debugger.h @@ -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 &p_stack_info); Vector get_error_stack_info() const; - ScriptDebugger() {} }; diff --git a/core/error/error_macros.h b/core/error/error_macros.h index 6ddcce3506e..034f16f2cba 100644 --- a/core/error/error_macros.h +++ b/core/error/error_macros.h @@ -69,8 +69,6 @@ struct ErrorHandlerList { void *userdata = nullptr; ErrorHandlerList *next = nullptr; - - ErrorHandlerList() {} }; void add_error_handler(ErrorHandlerList *p_handler); diff --git a/core/extension/gdextension.cpp b/core/extension/gdextension.cpp index c821f375b83..55858658cf4 100644 --- a/core/extension/gdextension.cpp +++ b/core/extension/gdextension.cpp @@ -802,9 +802,6 @@ void GDExtension::_bind_methods() { BIND_ENUM_CONSTANT(INITIALIZATION_LEVEL_EDITOR); } -GDExtension::GDExtension() { -} - GDExtension::~GDExtension() { if (is_library_open()) { close_library(); diff --git a/core/extension/gdextension.h b/core/extension/gdextension.h index 3800cac7bf9..7d6767521b1 100644 --- a/core/extension/gdextension.h +++ b/core/extension/gdextension.h @@ -177,7 +177,6 @@ public: static void initialize_gdextensions(); static void finalize_gdextensions(); - GDExtension(); ~GDExtension(); }; diff --git a/core/input/input_event.h b/core/input/input_event.h index bcea87ecd0e..61e00954aee 100644 --- a/core/input/input_event.h +++ b/core/input/input_event.h @@ -90,8 +90,6 @@ public: virtual bool accumulate(const Ref &p_event) { return false; } virtual InputEventType get_type() const { return InputEventType::INVALID; } - - InputEvent() {} }; class InputEventFromWindow : public InputEvent { @@ -105,8 +103,6 @@ protected: public: void set_window_id(int64_t p_id); int64_t get_window_id() const; - - InputEventFromWindow() {} }; class InputEventWithModifiers : public InputEventFromWindow { @@ -147,8 +143,6 @@ public: virtual String as_text() const override; virtual String _to_string() override; - - InputEventWithModifiers() {} }; class InputEventKey : public InputEventWithModifiers { @@ -205,8 +199,6 @@ public: static Ref create_reference(Key p_keycode_with_modifier_masks, bool p_physical = false); InputEventType get_type() const final override { return InputEventType::KEY; } - - InputEventKey() {} }; class InputEventMouse : public InputEventWithModifiers { @@ -229,8 +221,6 @@ public: void set_global_position(const Vector2 &p_global_pos); Vector2 get_global_position() const; - - InputEventMouse() {} }; class InputEventMouseButton : public InputEventMouse { @@ -266,8 +256,6 @@ public: virtual String _to_string() override; InputEventType get_type() const final override { return InputEventType::MOUSE_BUTTON; } - - InputEventMouseButton() {} }; class InputEventMouseMotion : public InputEventMouse { @@ -313,8 +301,6 @@ public: virtual bool accumulate(const Ref &p_event) override; InputEventType get_type() const final override { return InputEventType::MOUSE_MOTION; } - - InputEventMouseMotion() {} }; class InputEventJoypadMotion : public InputEvent { @@ -343,8 +329,6 @@ public: static Ref create_reference(JoyAxis p_axis, float p_value, int p_device = -1); InputEventType get_type() const final override { return InputEventType::JOY_MOTION; } - - InputEventJoypadMotion() {} }; class InputEventJoypadButton : public InputEvent { @@ -376,8 +360,6 @@ public: static Ref create_reference(JoyButton p_btn_index, int p_device = -1); InputEventType get_type() const final override { return InputEventType::JOY_BUTTON; } - - InputEventJoypadButton() {} }; class InputEventScreenTouch : public InputEventFromWindow { @@ -407,8 +389,6 @@ public: virtual String _to_string() override; InputEventType get_type() const final override { return InputEventType::SCREEN_TOUCH; } - - InputEventScreenTouch() {} }; class InputEventScreenDrag : public InputEventFromWindow { @@ -461,8 +441,6 @@ public: virtual bool accumulate(const Ref &p_event) override; InputEventType get_type() const final override { return InputEventType::SCREEN_DRAG; } - - InputEventScreenDrag() {} }; class InputEventAction : public InputEvent { @@ -498,8 +476,6 @@ public: virtual String _to_string() override; InputEventType get_type() const final override { return InputEventType::ACTION; } - - InputEventAction() {} }; class InputEventGesture : public InputEventWithModifiers { @@ -531,8 +507,6 @@ public: virtual String _to_string() override; InputEventType get_type() const final override { return InputEventType::MAGNIFY_GESTURE; } - - InputEventMagnifyGesture() {} }; class InputEventPanGesture : public InputEventGesture { @@ -551,8 +525,6 @@ public: virtual String _to_string() override; InputEventType get_type() const final override { return InputEventType::PAN_GESTURE; } - - InputEventPanGesture() {} }; class InputEventMIDI : public InputEvent { @@ -599,8 +571,6 @@ public: virtual String _to_string() override; InputEventType get_type() const final override { return InputEventType::MIDI; } - - InputEventMIDI() {} }; class InputEventShortcut : public InputEvent { diff --git a/core/io/dir_access.h b/core/io/dir_access.h index 0cbb42779f1..8d9ee95c854 100644 --- a/core/io/dir_access.h +++ b/core/io/dir_access.h @@ -171,6 +171,5 @@ public: virtual bool is_equivalent(const String &p_path_a, const String &p_path_b) const; public: - DirAccess() {} virtual ~DirAccess(); }; diff --git a/core/io/dtls_server.h b/core/io/dtls_server.h index 3417d150352..10965b3b887 100644 --- a/core/io/dtls_server.h +++ b/core/io/dtls_server.h @@ -49,6 +49,4 @@ public: virtual Error setup(Ref p_options) = 0; virtual void stop() = 0; virtual Ref take_connection(Ref p_peer) = 0; - - DTLSServer() {} }; diff --git a/core/io/file_access.h b/core/io/file_access.h index 036dde9440c..3c53c0300bd 100644 --- a/core/io/file_access.h +++ b/core/io/file_access.h @@ -275,7 +275,6 @@ public: } public: - FileAccess() {} virtual ~FileAccess(); }; diff --git a/core/io/file_access_compressed.h b/core/io/file_access_compressed.h index 0f00083c627..3b6af39d06e 100644 --- a/core/io/file_access_compressed.h +++ b/core/io/file_access_compressed.h @@ -106,6 +106,5 @@ public: virtual void close() override; - FileAccessCompressed() {} virtual ~FileAccessCompressed(); }; diff --git a/core/io/file_access_encrypted.h b/core/io/file_access_encrypted.h index 15cad3a1967..304b939372f 100644 --- a/core/io/file_access_encrypted.h +++ b/core/io/file_access_encrypted.h @@ -105,6 +105,5 @@ public: static void deinitialize(); - FileAccessEncrypted() {} ~FileAccessEncrypted(); }; diff --git a/core/io/file_access_memory.h b/core/io/file_access_memory.h index 2ff638e9ac8..8fb4af8f4cd 100644 --- a/core/io/file_access_memory.h +++ b/core/io/file_access_memory.h @@ -78,6 +78,4 @@ public: virtual Error _set_read_only_attribute(const String &p_file, bool p_ro) override { return ERR_UNAVAILABLE; } virtual void close() override {} - - FileAccessMemory() {} }; diff --git a/core/io/file_access_zip.h b/core/io/file_access_zip.h index 80ddeb52bf9..a352322886e 100644 --- a/core/io/file_access_zip.h +++ b/core/io/file_access_zip.h @@ -41,7 +41,6 @@ public: struct File { int package = -1; unz_file_pos file_pos; - File() {} }; private: diff --git a/core/io/http_client.h b/core/io/http_client.h index fe2f2df2895..54a3d9c436d 100644 --- a/core/io/http_client.h +++ b/core/io/http_client.h @@ -197,7 +197,6 @@ public: virtual void set_http_proxy(const String &p_host, int p_port); virtual void set_https_proxy(const String &p_host, int p_port); - HTTPClient() {} virtual ~HTTPClient() {} }; diff --git a/core/io/image.h b/core/io/image.h index 0729021a04b..390fc517f67 100644 --- a/core/io/image.h +++ b/core/io/image.h @@ -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 char **p_xpm); // Import an XPM image. - ~Image() {} - AlphaMode detect_alpha() const; bool is_invisible() const; diff --git a/core/io/marshalls.h b/core/io/marshalls.h index 1d057d4d341..f6e79a4f310 100644 --- a/core/io/marshalls.h +++ b/core/io/marshalls.h @@ -217,8 +217,6 @@ protected: public: void set_object_id(ObjectID p_id); 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); diff --git a/core/io/missing_resource.cpp b/core/io/missing_resource.cpp index 1c15cc7dd38..3bb7c8e90b6 100644 --- a/core/io/missing_resource.cpp +++ b/core/io/missing_resource.cpp @@ -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::BOOL, "recording_properties", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NONE), "set_recording_properties", "is_recording_properties"); } - -MissingResource::MissingResource() { -} diff --git a/core/io/missing_resource.h b/core/io/missing_resource.h index 702cd3b3b1f..3d14a74205e 100644 --- a/core/io/missing_resource.h +++ b/core/io/missing_resource.h @@ -57,6 +57,4 @@ public: bool is_recording_properties() const; virtual String get_save_class() const override; - - MissingResource(); }; diff --git a/core/io/packed_data_container.h b/core/io/packed_data_container.h index 8d25d5c9487..e0dbd10ad87 100644 --- a/core/io/packed_data_container.h +++ b/core/io/packed_data_container.h @@ -75,8 +75,6 @@ public: Error pack(const Variant &p_data); int size() const; - - PackedDataContainer() {} }; class PackedDataContainerRef : public RefCounted { @@ -96,6 +94,4 @@ public: int size() const; virtual Variant getvar(const Variant &p_key, bool *r_valid = nullptr) const override; - - PackedDataContainerRef() {} }; diff --git a/core/io/packet_peer.h b/core/io/packet_peer.h index 91d3bc442b1..85526daedf0 100644 --- a/core/io/packet_peer.h +++ b/core/io/packet_peer.h @@ -71,9 +71,6 @@ public: void set_encode_buffer_max_size(int p_max_size); int get_encode_buffer_max_size() const; - - PacketPeer() {} - ~PacketPeer() {} }; class PacketPeerExtension : public PacketPeer { diff --git a/core/io/packet_peer_dtls.h b/core/io/packet_peer_dtls.h index 5676ea50d3b..fcc9cd8651c 100644 --- a/core/io/packet_peer_dtls.h +++ b/core/io/packet_peer_dtls.h @@ -58,8 +58,6 @@ public: static PacketPeerDTLS *create(bool p_notify_postinitialize = true); static bool is_available(); - - PacketPeerDTLS() {} }; VARIANT_ENUM_CAST(PacketPeerDTLS::Status); diff --git a/core/io/pck_packer.h b/core/io/pck_packer.h index c7a2b75995c..65f88397d4d 100644 --- a/core/io/pck_packer.h +++ b/core/io/pck_packer.h @@ -66,6 +66,5 @@ public: Error add_file_removal(const String &p_target_path); Error flush(bool p_verbose = false); - PCKPacker() {} ~PCKPacker(); }; diff --git a/core/io/plist.h b/core/io/plist.h index 5c27a8bbdd9..f2c35eb91de 100644 --- a/core/io/plist.h +++ b/core/io/plist.h @@ -121,7 +121,4 @@ public: 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; void store_text(String &p_stream, uint8_t p_indent) const; - - PListNode() {} - ~PListNode() {} }; diff --git a/core/io/resource_format_binary.h b/core/io/resource_format_binary.h index b244775a401..35e66e73e69 100644 --- a/core/io/resource_format_binary.h +++ b/core/io/resource_format_binary.h @@ -104,8 +104,6 @@ public: String recognize_script_class(Ref p_f); void get_dependencies(Ref p_f, List *p_dependencies, bool p_add_types); void get_classes_used(Ref p_f, HashSet *p_classes); - - ResourceLoaderBinary() {} }; class ResourceFormatLoaderBinary : public ResourceFormatLoader { diff --git a/core/io/stream_peer.h b/core/io/stream_peer.h index a73e92d248b..7efebcfccf4 100644 --- a/core/io/stream_peer.h +++ b/core/io/stream_peer.h @@ -97,8 +97,6 @@ public: String get_string(int p_bytes = -1); String get_utf8_string(int p_bytes = -1); Variant get_var(bool p_allow_objects = false); - - StreamPeer() {} }; class StreamPeerExtension : public StreamPeer { @@ -152,6 +150,4 @@ public: void clear(); Ref duplicate() const; - - StreamPeerBuffer() {} }; diff --git a/core/io/stream_peer_gzip.cpp b/core/io/stream_peer_gzip.cpp index b9188de540f..bfd6b7bd652 100644 --- a/core/io/stream_peer_gzip.cpp +++ b/core/io/stream_peer_gzip.cpp @@ -40,9 +40,6 @@ void StreamPeerGZIP::_bind_methods() { ClassDB::bind_method(D_METHOD("clear"), &StreamPeerGZIP::clear); } -StreamPeerGZIP::StreamPeerGZIP() { -} - StreamPeerGZIP::~StreamPeerGZIP() { _close(); } diff --git a/core/io/stream_peer_gzip.h b/core/io/stream_peer_gzip.h index 394fd61382b..e712253c209 100644 --- a/core/io/stream_peer_gzip.h +++ b/core/io/stream_peer_gzip.h @@ -68,6 +68,5 @@ public: virtual int get_available_bytes() const override; - StreamPeerGZIP(); ~StreamPeerGZIP(); }; diff --git a/core/io/stream_peer_tls.h b/core/io/stream_peer_tls.h index 80a481153e3..c15b87667a8 100644 --- a/core/io/stream_peer_tls.h +++ b/core/io/stream_peer_tls.h @@ -60,8 +60,6 @@ public: static StreamPeerTLS *create(bool p_notify_postinitialize = true); static bool is_available(); - - StreamPeerTLS() {} }; VARIANT_ENUM_CAST(StreamPeerTLS::Status); diff --git a/core/io/translation_loader_po.h b/core/io/translation_loader_po.h index baba9ace7ec..87d70736f35 100644 --- a/core/io/translation_loader_po.h +++ b/core/io/translation_loader_po.h @@ -46,6 +46,4 @@ public: // 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 bool has_custom_uid_support() const override { return true; } - - TranslationLoaderPO() {} }; diff --git a/core/math/a_star.h b/core/math/a_star.h index 523c4db0988..612dfe32a49 100644 --- a/core/math/a_star.h +++ b/core/math/a_star.h @@ -43,8 +43,6 @@ class AStar3D : public RefCounted { friend class AStar2D; struct Point { - Point() {} - int64_t id = 0; Vector3 pos; real_t weight_scale = 0; @@ -167,7 +165,6 @@ public: Vector get_point_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false); Vector get_id_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false); - AStar3D() {} ~AStar3D(); }; @@ -226,7 +223,4 @@ public: Vector get_point_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false); Vector get_id_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false); - - AStar2D() {} - ~AStar2D() {} }; diff --git a/core/math/bvh.h b/core/math/bvh.h index 369c33674d1..5f0bf23f28e 100644 --- a/core/math/bvh.h +++ b/core/math/bvh.h @@ -799,9 +799,6 @@ private: // local toggle for turning on and off thread safety in project settings bool _thread_safe = BVH_THREAD_SAFE; - -public: - BVH_Manager() {} }; #undef BVHTREE_CLASS diff --git a/core/math/expression.h b/core/math/expression.h index aea714cfbed..59a1030896b 100644 --- a/core/math/expression.h +++ b/core/math/expression.h @@ -39,8 +39,6 @@ private: struct Input { Variant::Type type = Variant::NIL; String name; - - Input() {} }; Vector inputs; @@ -135,7 +133,6 @@ private: Type type = TYPE_INPUT; - ENode() {} virtual ~ENode() { if (next) { memdelete(next); @@ -267,6 +264,5 @@ public: bool has_execute_failed() const; String get_error_text() const; - Expression() {} ~Expression(); }; diff --git a/core/math/geometry_3d.cpp b/core/math/geometry_3d.cpp index a57c12fbb6e..15799cdb456 100644 --- a/core/math/geometry_3d.cpp +++ b/core/math/geometry_3d.cpp @@ -186,13 +186,11 @@ struct _FaceClassify { face = -1; edge = -1; } - _Link() {} }; bool valid = false; int group = -1; _Link links[3]; Face3 face; - _FaceClassify() {} }; /*** GEOMETRY WRAPPER ***/ diff --git a/core/math/quick_hull.h b/core/math/quick_hull.h index e374211d5ea..9e24b8816e2 100644 --- a/core/math/quick_hull.h +++ b/core/math/quick_hull.h @@ -76,12 +76,10 @@ private: struct FaceConnect { List::Element *left = nullptr; List::Element *right = nullptr; - FaceConnect() {} }; struct RetFaceConnect { List::Element *left = nullptr; List::Element *right = nullptr; - RetFaceConnect() {} }; public: diff --git a/core/object/class_db.cpp b/core/object/class_db.cpp index 5b4a4f6bd9d..d44bfc867ef 100644 --- a/core/object/class_db.cpp +++ b/core/object/class_db.cpp @@ -93,8 +93,6 @@ public: class_name = p_class_name; } - ~PlaceholderExtensionInstance() {} - void set(const StringName &p_name, const Variant &p_value, bool &r_valid) { r_valid = is_runtime_property(p_name); if (r_valid) { diff --git a/core/object/class_db.h b/core/object/class_db.h index 9a88cc1d854..86340425415 100644 --- a/core/object/class_db.h +++ b/core/object/class_db.h @@ -165,9 +165,6 @@ public: bool is_runtime = false; // The bool argument indicates the need to postinitialize. Object *(*creation_func)(bool) = nullptr; - - ClassInfo() {} - ~ClassInfo() {} }; template diff --git a/core/object/ref_counted.h b/core/object/ref_counted.h index 9b6c3c7a85b..ea2eb49f325 100644 --- a/core/object/ref_counted.h +++ b/core/object/ref_counted.h @@ -51,7 +51,6 @@ public: int get_reference_count() const; RefCounted(); - ~RefCounted() {} }; template @@ -237,8 +236,6 @@ public: Variant get_ref() const; void set_obj(Object *p_object); void set_ref(const Ref &p_ref); - - WeakRef() {} }; template diff --git a/core/object/script_instance.cpp b/core/object/script_instance.cpp index 65f44e8a6b2..7a6e8c02041 100644 --- a/core/object/script_instance.cpp +++ b/core/object/script_instance.cpp @@ -88,6 +88,3 @@ Variant ScriptInstance::property_get_fallback(const StringName &, bool *r_valid) const Variant ScriptInstance::get_rpc_config() const { return get_script()->get_rpc_config(); } - -ScriptInstance::~ScriptInstance() { -} diff --git a/core/object/script_instance.h b/core/object/script_instance.h index 59b7199cb6b..c3107b8d126 100644 --- a/core/object/script_instance.h +++ b/core/object/script_instance.h @@ -93,5 +93,5 @@ public: virtual const Variant get_rpc_config() const; virtual ScriptLanguage *get_language() = 0; - virtual ~ScriptInstance(); + virtual ~ScriptInstance() {} }; diff --git a/core/object/script_language_extension.h b/core/object/script_language_extension.h index aef445ff7dd..b74261e92c9 100644 --- a/core/object/script_language_extension.h +++ b/core/object/script_language_extension.h @@ -214,8 +214,6 @@ public: GDVIRTUAL_CALL(_get_rpc_config, ret); return ret; } - - ScriptExtension() {} }; typedef ScriptLanguage::ProfilingInfo ScriptLanguageExtensionProfilingInfo; diff --git a/core/object/undo_redo.h b/core/object/undo_redo.h index 0be8dfb329a..8ba10882a9a 100644 --- a/core/object/undo_redo.h +++ b/core/object/undo_redo.h @@ -145,7 +145,6 @@ public: void set_method_notify_callback(MethodNotifyCallback p_method_callback, void *p_ud); void set_property_notify_callback(PropertyNotifyCallback p_property_callback, void *p_ud); - UndoRedo() {} ~UndoRedo(); }; diff --git a/core/os/main_loop.h b/core/os/main_loop.h index 2d5b1e3635b..f17865eb667 100644 --- a/core/os/main_loop.h +++ b/core/os/main_loop.h @@ -66,6 +66,5 @@ public: virtual bool process(double p_time); virtual void finalize(); - MainLoop() {} virtual ~MainLoop() {} }; diff --git a/core/os/safe_binary_mutex.h b/core/os/safe_binary_mutex.h index c353ca536ed..c1877cf595f 100644 --- a/core/os/safe_binary_mutex.h +++ b/core/os/safe_binary_mutex.h @@ -136,7 +136,6 @@ template class MutexLock> { public: MutexLock(const SafeBinaryMutex &p_mutex) {} - ~MutexLock() {} void temp_relock() const {} void temp_unlock() const {} diff --git a/core/os/thread.cpp b/core/os/thread.cpp index 1214875032b..4b0390ce7f2 100644 --- a/core/os/thread.cpp +++ b/core/os/thread.cpp @@ -96,9 +96,6 @@ Error Thread::set_name(const String &p_name) { return ERR_UNAVAILABLE; } -Thread::Thread() { -} - Thread::~Thread() { if (id != UNASSIGNED_ID) { #ifdef DEBUG_ENABLED diff --git a/core/os/thread.h b/core/os/thread.h index bb6d42c2a24..4e4a27ecc78 100644 --- a/core/os/thread.h +++ b/core/os/thread.h @@ -138,7 +138,6 @@ public: ///< waits until thread is finished, and deallocates it. void wait_to_finish(); - Thread(); ~Thread(); }; diff --git a/core/string/optimized_translation.h b/core/string/optimized_translation.h index 0f8957e95f7..6aad7143065 100644 --- a/core/string/optimized_translation.h +++ b/core/string/optimized_translation.h @@ -99,6 +99,4 @@ public: virtual void get_message_list(List *r_messages) const override; virtual int get_message_count() const override; - - OptimizedTranslation() {} }; diff --git a/core/string/print_string.h b/core/string/print_string.h index 9f75cd239bf..43b358a06b4 100644 --- a/core/string/print_string.h +++ b/core/string/print_string.h @@ -44,8 +44,6 @@ struct PrintHandlerList { void *userdata = nullptr; PrintHandlerList *next = nullptr; - - PrintHandlerList() {} }; String stringify_variants(const Span &p_vars); diff --git a/core/string/string_builder.h b/core/string/string_builder.h index 69a87983372..645c9c92dc1 100644 --- a/core/string/string_builder.h +++ b/core/string/string_builder.h @@ -76,6 +76,4 @@ public: _FORCE_INLINE_ operator String() const { return as_string(); } - - StringBuilder() {} }; diff --git a/core/string/string_name.h b/core/string/string_name.h index bcb64074278..0619af87583 100644 --- a/core/string/string_name.h +++ b/core/string/string_name.h @@ -51,7 +51,6 @@ class [[nodiscard]] StringName { uint32_t hash = 0; _Data *prev = nullptr; _Data *next = nullptr; - _Data() {} }; _Data *_data = nullptr; diff --git a/core/string/translation_domain.cpp b/core/string/translation_domain.cpp index fd5e3d6c27c..056d3fcb05c 100644 --- a/core/string/translation_domain.cpp +++ b/core/string/translation_domain.cpp @@ -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_suffix"), "set_pseudolocalization_suffix", "get_pseudolocalization_suffix"); } - -TranslationDomain::TranslationDomain() { -} diff --git a/core/string/translation_domain.h b/core/string/translation_domain.h index 01931f05c80..f95ff631dcf 100644 --- a/core/string/translation_domain.h +++ b/core/string/translation_domain.h @@ -110,6 +110,4 @@ public: void set_pseudolocalization_suffix(const String &p_suffix); StringName pseudolocalize(const StringName &p_message) const; - - TranslationDomain(); }; diff --git a/core/templates/list.h b/core/templates/list.h index 7804921c479..c9ef135883d 100644 --- a/core/templates/list.h +++ b/core/templates/list.h @@ -134,8 +134,6 @@ public: } void transfer_to_back(List *p_dst_list); - - _FORCE_INLINE_ Element() {} }; typedef T ValueType; diff --git a/core/templates/rb_set.h b/core/templates/rb_set.h index 798353957c5..e0a3cf54dc4 100644 --- a/core/templates/rb_set.h +++ b/core/templates/rb_set.h @@ -78,7 +78,6 @@ public: const T &get() const { return value; } - Element() {} }; typedef T ValueType; diff --git a/core/templates/rid.h b/core/templates/rid.h index b5d81d61ac0..6af7701d836 100644 --- a/core/templates/rid.h +++ b/core/templates/rid.h @@ -71,8 +71,6 @@ public: _ALWAYS_INLINE_ uint64_t get_id() const { return _id; } uint32_t hash() const { return HashMapHasherDefault::hash(_id); } - - _ALWAYS_INLINE_ RID() {} }; template <> diff --git a/core/templates/ring_buffer.h b/core/templates/ring_buffer.h index 3efa4ff3e99..9b00f4d0898 100644 --- a/core/templates/ring_buffer.h +++ b/core/templates/ring_buffer.h @@ -213,5 +213,4 @@ public: RingBuffer(int p_power = 0) { resize(p_power); } - ~RingBuffer() {} }; diff --git a/core/templates/self_list.h b/core/templates/self_list.h index 0b98bfe2deb..9446c7f1974 100644 --- a/core/templates/self_list.h +++ b/core/templates/self_list.h @@ -130,7 +130,6 @@ public: // Forbid copying, which has broken behavior. void operator=(const List &) = delete; - _FORCE_INLINE_ List() {} _FORCE_INLINE_ ~List() { // A self list must be empty on destruction. DEV_ASSERT(_first == nullptr); diff --git a/core/templates/vector.h b/core/templates/vector.h index 25d7166b016..0ef6eba667a 100644 --- a/core/templates/vector.h +++ b/core/templates/vector.h @@ -320,8 +320,6 @@ public: _cowdata(p_init) {} _FORCE_INLINE_ Vector(const Vector &p_from) = default; _FORCE_INLINE_ Vector(Vector &&p_from) = default; - - _FORCE_INLINE_ ~Vector() {} }; template diff --git a/core/variant/callable_bind.cpp b/core/variant/callable_bind.cpp index 43cac263c1c..a2448696d43 100644 --- a/core/variant/callable_bind.cpp +++ b/core/variant/callable_bind.cpp @@ -167,9 +167,6 @@ CallableCustomBind::CallableCustomBind(const Callable &p_callable, const Vector< binds = p_binds; } -CallableCustomBind::~CallableCustomBind() { -} - ////////////////////////////////// uint32_t CallableCustomUnbind::hash() const { @@ -273,6 +270,3 @@ CallableCustomUnbind::CallableCustomUnbind(const Callable &p_callable, int p_arg callable = p_callable; argcount = p_argcount; } - -CallableCustomUnbind::~CallableCustomUnbind() { -} diff --git a/core/variant/callable_bind.h b/core/variant/callable_bind.h index a36a820966a..5014b5503dd 100644 --- a/core/variant/callable_bind.h +++ b/core/variant/callable_bind.h @@ -60,7 +60,6 @@ public: Vector get_binds() { return binds; } CallableCustomBind(const Callable &p_callable, const Vector &p_binds); - virtual ~CallableCustomBind(); }; class CallableCustomUnbind : public CallableCustom { @@ -91,5 +90,4 @@ public: int get_unbinds() { return argcount; } CallableCustomUnbind(const Callable &p_callable, int p_argcount); - virtual ~CallableCustomUnbind(); }; diff --git a/core/variant/variant_parser.h b/core/variant/variant_parser.h index 11c9d5b38c5..59f005a584a 100644 --- a/core/variant/variant_parser.h +++ b/core/variant/variant_parser.h @@ -56,7 +56,6 @@ public: virtual bool is_utf8() const = 0; bool is_eof() const; - Stream() {} virtual ~Stream() {} }; diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 738ce39ed09..1aae07a1fc1 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -772,9 +772,6 @@ void TextEdit::_notification(int p_what) { bool rtl = is_layout_rtl(); int lines_drawn = 0; - RID selection_start; - RID selection_end; - for (int i = 0; i < text.size(); i++) { text.update_accessibility(i, ae); const Ref &ac_buf = text.get_line_data(i);