You've already forked godot
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:
@@ -559,9 +559,6 @@ public:
|
||||
#ifdef TOOLS_ENABLED
|
||||
virtual void get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const override;
|
||||
#endif
|
||||
|
||||
ClassDB() {}
|
||||
~ClassDB() {}
|
||||
};
|
||||
|
||||
} // namespace Special
|
||||
|
||||
@@ -110,6 +110,3 @@ void AESContext::_bind_methods() {
|
||||
BIND_ENUM_CONSTANT(MODE_CBC_DECRYPT);
|
||||
BIND_ENUM_CONSTANT(MODE_MAX);
|
||||
}
|
||||
|
||||
AESContext::AESContext() {
|
||||
}
|
||||
|
||||
@@ -58,8 +58,6 @@ public:
|
||||
PackedByteArray update(const PackedByteArray &p_src);
|
||||
PackedByteArray get_iv_state();
|
||||
void finish();
|
||||
|
||||
AESContext();
|
||||
};
|
||||
|
||||
VARIANT_ENUM_CAST(AESContext::Mode);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -56,7 +56,6 @@ public:
|
||||
Error update(const PackedByteArray &p_chunk);
|
||||
PackedByteArray finish();
|
||||
|
||||
HashingContext() {}
|
||||
~HashingContext();
|
||||
};
|
||||
|
||||
|
||||
@@ -46,7 +46,6 @@ struct DebuggerMarshalls {
|
||||
|
||||
struct ScriptStackDump {
|
||||
List<ScriptLanguage::StackInfo> frames;
|
||||
ScriptStackDump() {}
|
||||
|
||||
Array serialize();
|
||||
bool deserialize(const Array &p_arr);
|
||||
|
||||
@@ -55,6 +55,5 @@ public:
|
||||
GDVIRTUAL1(_add_frame, Array);
|
||||
GDVIRTUAL4(_tick, double, double, double, double);
|
||||
|
||||
EngineProfiler() {}
|
||||
virtual ~EngineProfiler();
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
Vector<StackInfo> get_error_stack_info() const;
|
||||
ScriptDebugger() {}
|
||||
};
|
||||
|
||||
@@ -69,8 +69,6 @@ struct ErrorHandlerList {
|
||||
void *userdata = nullptr;
|
||||
|
||||
ErrorHandlerList *next = nullptr;
|
||||
|
||||
ErrorHandlerList() {}
|
||||
};
|
||||
|
||||
void add_error_handler(ErrorHandlerList *p_handler);
|
||||
|
||||
@@ -802,9 +802,6 @@ void GDExtension::_bind_methods() {
|
||||
BIND_ENUM_CONSTANT(INITIALIZATION_LEVEL_EDITOR);
|
||||
}
|
||||
|
||||
GDExtension::GDExtension() {
|
||||
}
|
||||
|
||||
GDExtension::~GDExtension() {
|
||||
if (is_library_open()) {
|
||||
close_library();
|
||||
|
||||
@@ -177,7 +177,6 @@ public:
|
||||
static void initialize_gdextensions();
|
||||
static void finalize_gdextensions();
|
||||
|
||||
GDExtension();
|
||||
~GDExtension();
|
||||
};
|
||||
|
||||
|
||||
@@ -90,8 +90,6 @@ public:
|
||||
virtual bool accumulate(const Ref<InputEvent> &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<InputEventKey> 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<InputEvent> &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<InputEventJoypadMotion> 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<InputEventJoypadButton> 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<InputEvent> &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 {
|
||||
|
||||
@@ -171,6 +171,5 @@ public:
|
||||
virtual bool is_equivalent(const String &p_path_a, const String &p_path_b) const;
|
||||
|
||||
public:
|
||||
DirAccess() {}
|
||||
virtual ~DirAccess();
|
||||
};
|
||||
|
||||
@@ -49,6 +49,4 @@ public:
|
||||
virtual Error setup(Ref<TLSOptions> p_options) = 0;
|
||||
virtual void stop() = 0;
|
||||
virtual Ref<PacketPeerDTLS> take_connection(Ref<PacketPeerUDP> p_peer) = 0;
|
||||
|
||||
DTLSServer() {}
|
||||
};
|
||||
|
||||
@@ -275,7 +275,6 @@ public:
|
||||
}
|
||||
|
||||
public:
|
||||
FileAccess() {}
|
||||
virtual ~FileAccess();
|
||||
};
|
||||
|
||||
|
||||
@@ -106,6 +106,5 @@ public:
|
||||
|
||||
virtual void close() override;
|
||||
|
||||
FileAccessCompressed() {}
|
||||
virtual ~FileAccessCompressed();
|
||||
};
|
||||
|
||||
@@ -105,6 +105,5 @@ public:
|
||||
|
||||
static void deinitialize();
|
||||
|
||||
FileAccessEncrypted() {}
|
||||
~FileAccessEncrypted();
|
||||
};
|
||||
|
||||
@@ -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() {}
|
||||
};
|
||||
|
||||
@@ -41,7 +41,6 @@ public:
|
||||
struct File {
|
||||
int package = -1;
|
||||
unz_file_pos file_pos;
|
||||
File() {}
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
@@ -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() {}
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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() {
|
||||
}
|
||||
|
||||
@@ -57,6 +57,4 @@ public:
|
||||
bool is_recording_properties() const;
|
||||
|
||||
virtual String get_save_class() const override;
|
||||
|
||||
MissingResource();
|
||||
};
|
||||
|
||||
@@ -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() {}
|
||||
};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -58,8 +58,6 @@ public:
|
||||
|
||||
static PacketPeerDTLS *create(bool p_notify_postinitialize = true);
|
||||
static bool is_available();
|
||||
|
||||
PacketPeerDTLS() {}
|
||||
};
|
||||
|
||||
VARIANT_ENUM_CAST(PacketPeerDTLS::Status);
|
||||
|
||||
@@ -66,6 +66,5 @@ public:
|
||||
Error add_file_removal(const String &p_target_path);
|
||||
Error flush(bool p_verbose = false);
|
||||
|
||||
PCKPacker() {}
|
||||
~PCKPacker();
|
||||
};
|
||||
|
||||
@@ -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() {}
|
||||
};
|
||||
|
||||
@@ -104,8 +104,6 @@ public:
|
||||
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_classes_used(Ref<FileAccess> p_f, HashSet<StringName> *p_classes);
|
||||
|
||||
ResourceLoaderBinary() {}
|
||||
};
|
||||
|
||||
class ResourceFormatLoaderBinary : public ResourceFormatLoader {
|
||||
|
||||
@@ -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<StreamPeerBuffer> duplicate() const;
|
||||
|
||||
StreamPeerBuffer() {}
|
||||
};
|
||||
|
||||
@@ -40,9 +40,6 @@ void StreamPeerGZIP::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("clear"), &StreamPeerGZIP::clear);
|
||||
}
|
||||
|
||||
StreamPeerGZIP::StreamPeerGZIP() {
|
||||
}
|
||||
|
||||
StreamPeerGZIP::~StreamPeerGZIP() {
|
||||
_close();
|
||||
}
|
||||
|
||||
@@ -68,6 +68,5 @@ public:
|
||||
|
||||
virtual int get_available_bytes() const override;
|
||||
|
||||
StreamPeerGZIP();
|
||||
~StreamPeerGZIP();
|
||||
};
|
||||
|
||||
@@ -60,8 +60,6 @@ public:
|
||||
static StreamPeerTLS *create(bool p_notify_postinitialize = true);
|
||||
|
||||
static bool is_available();
|
||||
|
||||
StreamPeerTLS() {}
|
||||
};
|
||||
|
||||
VARIANT_ENUM_CAST(StreamPeerTLS::Status);
|
||||
|
||||
@@ -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() {}
|
||||
};
|
||||
|
||||
@@ -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<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);
|
||||
|
||||
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<int64_t> get_id_path(int64_t p_from_id, int64_t p_to_id, bool p_allow_partial_path = false);
|
||||
|
||||
AStar2D() {}
|
||||
~AStar2D() {}
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -39,8 +39,6 @@ private:
|
||||
struct Input {
|
||||
Variant::Type type = Variant::NIL;
|
||||
String name;
|
||||
|
||||
Input() {}
|
||||
};
|
||||
|
||||
Vector<Input> 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();
|
||||
};
|
||||
|
||||
@@ -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 ***/
|
||||
|
||||
@@ -76,12 +76,10 @@ private:
|
||||
struct FaceConnect {
|
||||
List<Face>::Element *left = nullptr;
|
||||
List<Face>::Element *right = nullptr;
|
||||
FaceConnect() {}
|
||||
};
|
||||
struct RetFaceConnect {
|
||||
List<Geometry3D::MeshData::Face>::Element *left = nullptr;
|
||||
List<Geometry3D::MeshData::Face>::Element *right = nullptr;
|
||||
RetFaceConnect() {}
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 <typename T>
|
||||
|
||||
@@ -51,7 +51,6 @@ public:
|
||||
int get_reference_count() const;
|
||||
|
||||
RefCounted();
|
||||
~RefCounted() {}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
@@ -237,8 +236,6 @@ public:
|
||||
Variant get_ref() const;
|
||||
void set_obj(Object *p_object);
|
||||
void set_ref(const Ref<RefCounted> &p_ref);
|
||||
|
||||
WeakRef() {}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
||||
@@ -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() {
|
||||
}
|
||||
|
||||
@@ -93,5 +93,5 @@ public:
|
||||
virtual const Variant get_rpc_config() const;
|
||||
|
||||
virtual ScriptLanguage *get_language() = 0;
|
||||
virtual ~ScriptInstance();
|
||||
virtual ~ScriptInstance() {}
|
||||
};
|
||||
|
||||
@@ -214,8 +214,6 @@ public:
|
||||
GDVIRTUAL_CALL(_get_rpc_config, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
ScriptExtension() {}
|
||||
};
|
||||
|
||||
typedef ScriptLanguage::ProfilingInfo ScriptLanguageExtensionProfilingInfo;
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
@@ -66,6 +66,5 @@ public:
|
||||
virtual bool process(double p_time);
|
||||
virtual void finalize();
|
||||
|
||||
MainLoop() {}
|
||||
virtual ~MainLoop() {}
|
||||
};
|
||||
|
||||
@@ -136,7 +136,6 @@ template <int Tag>
|
||||
class MutexLock<SafeBinaryMutex<Tag>> {
|
||||
public:
|
||||
MutexLock(const SafeBinaryMutex<Tag> &p_mutex) {}
|
||||
~MutexLock() {}
|
||||
|
||||
void temp_relock() const {}
|
||||
void temp_unlock() const {}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -138,7 +138,6 @@ public:
|
||||
///< waits until thread is finished, and deallocates it.
|
||||
void wait_to_finish();
|
||||
|
||||
Thread();
|
||||
~Thread();
|
||||
};
|
||||
|
||||
|
||||
@@ -99,6 +99,4 @@ public:
|
||||
|
||||
virtual void get_message_list(List<StringName> *r_messages) const override;
|
||||
virtual int get_message_count() const override;
|
||||
|
||||
OptimizedTranslation() {}
|
||||
};
|
||||
|
||||
@@ -44,8 +44,6 @@ struct PrintHandlerList {
|
||||
void *userdata = nullptr;
|
||||
|
||||
PrintHandlerList *next = nullptr;
|
||||
|
||||
PrintHandlerList() {}
|
||||
};
|
||||
|
||||
String stringify_variants(const Span<Variant> &p_vars);
|
||||
|
||||
@@ -76,6 +76,4 @@ public:
|
||||
_FORCE_INLINE_ operator String() const {
|
||||
return as_string();
|
||||
}
|
||||
|
||||
StringBuilder() {}
|
||||
};
|
||||
|
||||
@@ -51,7 +51,6 @@ class [[nodiscard]] StringName {
|
||||
uint32_t hash = 0;
|
||||
_Data *prev = nullptr;
|
||||
_Data *next = nullptr;
|
||||
_Data() {}
|
||||
};
|
||||
|
||||
_Data *_data = nullptr;
|
||||
|
||||
@@ -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() {
|
||||
}
|
||||
|
||||
@@ -110,6 +110,4 @@ public:
|
||||
void set_pseudolocalization_suffix(const String &p_suffix);
|
||||
|
||||
StringName pseudolocalize(const StringName &p_message) const;
|
||||
|
||||
TranslationDomain();
|
||||
};
|
||||
|
||||
@@ -134,8 +134,6 @@ public:
|
||||
}
|
||||
|
||||
void transfer_to_back(List<T, A> *p_dst_list);
|
||||
|
||||
_FORCE_INLINE_ Element() {}
|
||||
};
|
||||
|
||||
typedef T ValueType;
|
||||
|
||||
@@ -78,7 +78,6 @@ public:
|
||||
const T &get() const {
|
||||
return value;
|
||||
}
|
||||
Element() {}
|
||||
};
|
||||
|
||||
typedef T ValueType;
|
||||
|
||||
@@ -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 <>
|
||||
|
||||
@@ -213,5 +213,4 @@ public:
|
||||
RingBuffer(int p_power = 0) {
|
||||
resize(p_power);
|
||||
}
|
||||
~RingBuffer() {}
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 <typename T>
|
||||
|
||||
@@ -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() {
|
||||
}
|
||||
|
||||
@@ -60,7 +60,6 @@ public:
|
||||
Vector<Variant> get_binds() { return binds; }
|
||||
|
||||
CallableCustomBind(const Callable &p_callable, const Vector<Variant> &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();
|
||||
};
|
||||
|
||||
@@ -56,7 +56,6 @@ public:
|
||||
virtual bool is_utf8() const = 0;
|
||||
bool is_eof() const;
|
||||
|
||||
Stream() {}
|
||||
virtual ~Stream() {}
|
||||
};
|
||||
|
||||
|
||||
@@ -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<TextParagraph> &ac_buf = text.get_line_data(i);
|
||||
|
||||
Reference in New Issue
Block a user