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

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

View File

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

View File

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

View File

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