瀏覽代碼

Remove empty constructors and destructors from core/

kobewi 1 月之前
父節點
當前提交
e14263f917
共有 67 個文件被更改,包括 1 次插入168 次删除
  1. 0 3
      core/core_bind.h
  2. 0 3
      core/crypto/aes_context.cpp
  3. 0 2
      core/crypto/aes_context.h
  4. 0 3
      core/crypto/crypto.h
  5. 0 1
      core/crypto/hashing_context.h
  6. 0 1
      core/debugger/debugger_marshalls.h
  7. 0 1
      core/debugger/engine_profiler.h
  8. 0 1
      core/debugger/script_debugger.h
  9. 0 2
      core/error/error_macros.h
  10. 0 3
      core/extension/gdextension.cpp
  11. 0 1
      core/extension/gdextension.h
  12. 0 30
      core/input/input_event.h
  13. 0 1
      core/io/dir_access.h
  14. 0 2
      core/io/dtls_server.h
  15. 0 1
      core/io/file_access.h
  16. 0 1
      core/io/file_access_compressed.h
  17. 0 1
      core/io/file_access_encrypted.h
  18. 0 2
      core/io/file_access_memory.h
  19. 0 1
      core/io/file_access_zip.h
  20. 0 1
      core/io/http_client.h
  21. 0 2
      core/io/image.h
  22. 0 2
      core/io/marshalls.h
  23. 0 3
      core/io/missing_resource.cpp
  24. 0 2
      core/io/missing_resource.h
  25. 0 4
      core/io/packed_data_container.h
  26. 0 3
      core/io/packet_peer.h
  27. 0 2
      core/io/packet_peer_dtls.h
  28. 0 1
      core/io/pck_packer.h
  29. 0 3
      core/io/plist.h
  30. 0 2
      core/io/resource_format_binary.h
  31. 0 4
      core/io/stream_peer.h
  32. 0 3
      core/io/stream_peer_gzip.cpp
  33. 0 1
      core/io/stream_peer_gzip.h
  34. 0 2
      core/io/stream_peer_tls.h
  35. 0 2
      core/io/translation_loader_po.h
  36. 0 6
      core/math/a_star.h
  37. 0 3
      core/math/bvh.h
  38. 0 4
      core/math/expression.h
  39. 0 2
      core/math/geometry_3d.cpp
  40. 0 2
      core/math/quick_hull.h
  41. 0 2
      core/object/class_db.cpp
  42. 0 3
      core/object/class_db.h
  43. 0 3
      core/object/ref_counted.h
  44. 0 3
      core/object/script_instance.cpp
  45. 1 1
      core/object/script_instance.h
  46. 0 2
      core/object/script_language_extension.h
  47. 0 1
      core/object/undo_redo.h
  48. 0 1
      core/os/main_loop.h
  49. 0 1
      core/os/safe_binary_mutex.h
  50. 0 3
      core/os/thread.cpp
  51. 0 1
      core/os/thread.h
  52. 0 2
      core/string/optimized_translation.h
  53. 0 2
      core/string/print_string.h
  54. 0 2
      core/string/string_builder.h
  55. 0 1
      core/string/string_name.h
  56. 0 3
      core/string/translation_domain.cpp
  57. 0 2
      core/string/translation_domain.h
  58. 0 2
      core/templates/list.h
  59. 0 1
      core/templates/rb_set.h
  60. 0 2
      core/templates/rid.h
  61. 0 1
      core/templates/ring_buffer.h
  62. 0 1
      core/templates/self_list.h
  63. 0 2
      core/templates/vector.h
  64. 0 6
      core/variant/callable_bind.cpp
  65. 0 2
      core/variant/callable_bind.h
  66. 0 1
      core/variant/variant_parser.h
  67. 0 3
      scene/gui/text_edit.cpp

+ 0 - 3
core/core_bind.h

@@ -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

+ 0 - 3
core/crypto/aes_context.cpp

@@ -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() {
-}

+ 0 - 2
core/crypto/aes_context.h

@@ -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);

+ 0 - 3
core/crypto/crypto.h

@@ -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 {

+ 0 - 1
core/crypto/hashing_context.h

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

+ 0 - 1
core/debugger/debugger_marshalls.h

@@ -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);

+ 0 - 1
core/debugger/engine_profiler.h

@@ -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();
 };
 };

+ 0 - 1
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<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() {}
 };
 };

+ 0 - 2
core/error/error_macros.h

@@ -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);

+ 0 - 3
core/extension/gdextension.cpp

@@ -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();

+ 0 - 1
core/extension/gdextension.h

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

+ 0 - 30
core/input/input_event.h

@@ -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 {

+ 0 - 1
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;
 	virtual bool is_equivalent(const String &p_path_a, const String &p_path_b) const;
 
 
 public:
 public:
-	DirAccess() {}
 	virtual ~DirAccess();
 	virtual ~DirAccess();
 };
 };

+ 0 - 2
core/io/dtls_server.h

@@ -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() {}
 };
 };

+ 0 - 1
core/io/file_access.h

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

+ 0 - 1
core/io/file_access_compressed.h

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

+ 0 - 1
core/io/file_access_encrypted.h

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

+ 0 - 2
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 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() {}
 };
 };

+ 0 - 1
core/io/file_access_zip.h

@@ -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:

+ 0 - 1
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_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() {}
 };
 };
 
 

+ 0 - 2
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 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;
 
 

+ 0 - 2
core/io/marshalls.h

@@ -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);

+ 0 - 3
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::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() {
-}

+ 0 - 2
core/io/missing_resource.h

@@ -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();
 };
 };

+ 0 - 4
core/io/packed_data_container.h

@@ -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() {}
 };
 };

+ 0 - 3
core/io/packet_peer.h

@@ -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 {

+ 0 - 2
core/io/packet_peer_dtls.h

@@ -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);

+ 0 - 1
core/io/pck_packer.h

@@ -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();
 };
 };

+ 0 - 3
core/io/plist.h

@@ -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() {}
 };
 };

+ 0 - 2
core/io/resource_format_binary.h

@@ -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 {

+ 0 - 4
core/io/stream_peer.h

@@ -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() {}
 };
 };

+ 0 - 3
core/io/stream_peer_gzip.cpp

@@ -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();
 }
 }

+ 0 - 1
core/io/stream_peer_gzip.h

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

+ 0 - 2
core/io/stream_peer_tls.h

@@ -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);

+ 0 - 2
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.
 	// 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() {}
 };
 };

+ 0 - 6
core/math/a_star.h

@@ -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() {}
 };
 };

+ 0 - 3
core/math/bvh.h

@@ -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

+ 0 - 4
core/math/expression.h

@@ -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();
 };
 };

+ 0 - 2
core/math/geometry_3d.cpp

@@ -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 ***/

+ 0 - 2
core/math/quick_hull.h

@@ -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:

+ 0 - 2
core/object/class_db.cpp

@@ -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) {

+ 0 - 3
core/object/class_db.h

@@ -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>

+ 0 - 3
core/object/ref_counted.h

@@ -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>

+ 0 - 3
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 {
 const Variant ScriptInstance::get_rpc_config() const {
 	return get_script()->get_rpc_config();
 	return get_script()->get_rpc_config();
 }
 }
-
-ScriptInstance::~ScriptInstance() {
-}

+ 1 - 1
core/object/script_instance.h

@@ -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() {}
 };
 };

+ 0 - 2
core/object/script_language_extension.h

@@ -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;

+ 0 - 1
core/object/undo_redo.h

@@ -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();
 };
 };
 
 

+ 0 - 1
core/os/main_loop.h

@@ -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() {}
 };
 };

+ 0 - 1
core/os/safe_binary_mutex.h

@@ -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 {}

+ 0 - 3
core/os/thread.cpp

@@ -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

+ 0 - 1
core/os/thread.h

@@ -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();
 };
 };
 
 

+ 0 - 2
core/string/optimized_translation.h

@@ -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() {}
 };
 };

+ 0 - 2
core/string/print_string.h

@@ -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);

+ 0 - 2
core/string/string_builder.h

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

+ 0 - 1
core/string/string_name.h

@@ -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;

+ 0 - 3
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_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() {
-}

+ 0 - 2
core/string/translation_domain.h

@@ -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();
 };
 };

+ 0 - 2
core/templates/list.h

@@ -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;

+ 0 - 1
core/templates/rb_set.h

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

+ 0 - 2
core/templates/rid.h

@@ -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 <>

+ 0 - 1
core/templates/ring_buffer.h

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

+ 0 - 1
core/templates/self_list.h

@@ -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);

+ 0 - 2
core/templates/vector.h

@@ -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>

+ 0 - 6
core/variant/callable_bind.cpp

@@ -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() {
-}

+ 0 - 2
core/variant/callable_bind.h

@@ -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();
 };
 };

+ 0 - 1
core/variant/variant_parser.h

@@ -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() {}
 	};
 	};
 
 

+ 0 - 3
scene/gui/text_edit.cpp

@@ -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);