Skip to content

Commit e14263f

Browse files
committed
Remove empty constructors and destructors from core/
1 parent 68410ac commit e14263f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1
-168
lines changed

core/core_bind.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,6 @@ class ClassDB : public Object {
559559
#ifdef TOOLS_ENABLED
560560
virtual void get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const override;
561561
#endif
562-
563-
ClassDB() {}
564-
~ClassDB() {}
565562
};
566563

567564
} // namespace Special

core/crypto/aes_context.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,3 @@ void AESContext::_bind_methods() {
110110
BIND_ENUM_CONSTANT(MODE_CBC_DECRYPT);
111111
BIND_ENUM_CONSTANT(MODE_MAX);
112112
}
113-
114-
AESContext::AESContext() {
115-
}

core/crypto/aes_context.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ class AESContext : public RefCounted {
5858
PackedByteArray update(const PackedByteArray &p_src);
5959
PackedByteArray get_iv_state();
6060
void finish();
61-
62-
AESContext();
6361
};
6462

6563
VARIANT_ENUM_CAST(AESContext::Mode);

core/crypto/crypto.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ class HMACContext : public RefCounted {
114114
virtual Error update(const PackedByteArray &p_data) = 0;
115115
virtual PackedByteArray finish() = 0;
116116

117-
HMACContext() {}
118117
virtual ~HMACContext() {}
119118
};
120119

@@ -144,8 +143,6 @@ class Crypto : public RefCounted {
144143
// Compares two PackedByteArrays for equality without leaking timing information in order to prevent timing attacks.
145144
// @see: https://paragonie.com/blog/2015/11/preventing-timing-attacks-on-string-comparison-with-double-hmac-strategy
146145
bool constant_time_compare(const PackedByteArray &p_trusted, const PackedByteArray &p_received);
147-
148-
Crypto() {}
149146
};
150147

151148
class ResourceFormatLoaderCrypto : public ResourceFormatLoader {

core/crypto/hashing_context.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ class HashingContext : public RefCounted {
5656
Error update(const PackedByteArray &p_chunk);
5757
PackedByteArray finish();
5858

59-
HashingContext() {}
6059
~HashingContext();
6160
};
6261

core/debugger/debugger_marshalls.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ struct DebuggerMarshalls {
4646

4747
struct ScriptStackDump {
4848
List<ScriptLanguage::StackInfo> frames;
49-
ScriptStackDump() {}
5049

5150
Array serialize();
5251
bool deserialize(const Array &p_arr);

core/debugger/engine_profiler.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,5 @@ class EngineProfiler : public RefCounted {
5555
GDVIRTUAL1(_add_frame, Array);
5656
GDVIRTUAL4(_tick, double, double, double, double);
5757

58-
EngineProfiler() {}
5958
virtual ~EngineProfiler();
6059
};

core/debugger/script_debugger.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,4 @@ class ScriptDebugger {
8282

8383
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);
8484
Vector<StackInfo> get_error_stack_info() const;
85-
ScriptDebugger() {}
8685
};

core/error/error_macros.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ struct ErrorHandlerList {
6969
void *userdata = nullptr;
7070

7171
ErrorHandlerList *next = nullptr;
72-
73-
ErrorHandlerList() {}
7472
};
7573

7674
void add_error_handler(ErrorHandlerList *p_handler);

core/extension/gdextension.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -802,9 +802,6 @@ void GDExtension::_bind_methods() {
802802
BIND_ENUM_CONSTANT(INITIALIZATION_LEVEL_EDITOR);
803803
}
804804

805-
GDExtension::GDExtension() {
806-
}
807-
808805
GDExtension::~GDExtension() {
809806
if (is_library_open()) {
810807
close_library();

0 commit comments

Comments
 (0)