From 4d3690eba50fdc8c7c12462a56b622a3080cee1e Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Mon, 18 Oct 2021 17:58:37 +0100 Subject: [PATCH] Remove unimplemented methods --- core/io/compression.h | 2 -- core/io/logger.h | 1 - core/math/convex_hull.cpp | 2 -- core/math/geometry.h | 2 -- core/os/memory.h | 1 - editor/code_editor.h | 2 -- editor/create_dialog.h | 2 -- editor/editor_data.h | 2 -- editor/editor_help.h | 3 --- editor/editor_inspector.h | 2 -- editor/editor_node.h | 10 ---------- editor/editor_path.h | 1 - editor/filesystem_dock.h | 4 ---- editor/groups_editor.h | 1 - editor/import/resource_importer_layered_texture.h | 6 ------ editor/plugins/abstract_polygon_2d_editor.h | 1 - editor/plugins/animation_blend_space_1d_editor.h | 2 -- editor/plugins/animation_player_editor_plugin.h | 2 -- editor/plugins/animation_tree_player_editor_plugin.h | 2 -- editor/plugins/asset_library_editor_plugin.h | 2 -- editor/plugins/canvas_item_editor_plugin.h | 10 ---------- editor/plugins/resource_preloader_editor_plugin.h | 1 - editor/plugins/script_editor_plugin.h | 4 ---- editor/plugins/spatial_editor_plugin.h | 2 -- editor/plugins/sprite_frames_editor_plugin.h | 2 -- editor/plugins/theme_editor_plugin.h | 1 - editor/plugins/tile_set_editor_plugin.h | 2 -- editor/plugins/visual_shader_editor_plugin.h | 2 -- editor/project_manager.h | 2 -- editor/project_settings_editor.h | 2 -- editor/property_editor.h | 1 - editor/reparent_dialog.h | 2 -- editor/scene_tree_dock.h | 2 -- editor/scene_tree_editor.h | 3 --- editor/settings_config_dialog.h | 3 --- main/input_default.h | 2 -- modules/bullet/area_bullet.h | 1 - modules/gdnative/arvr/arvr_interface_gdnative.h | 3 --- modules/gdnative/nativescript/nativescript.cpp | 7 ------- modules/gdnative/nativescript/nativescript.h | 3 --- modules/gdnative/pluginscript/pluginscript_instance.h | 2 -- modules/gdscript/gdscript.h | 2 -- .../language_server/gdscript_language_server.h | 2 -- modules/gltf/gltf_document.h | 2 -- modules/mbedtls/packet_peer_mbed_dtls.h | 2 -- modules/mbedtls/ssl_context_mbedtls.h | 2 -- modules/mbedtls/stream_peer_mbedtls.h | 2 -- modules/mono/glue/arguments_vector.h | 4 ++-- modules/regex/regex.h | 1 - modules/visual_script/visual_script_nodes.h | 6 ------ platform/android/audio_driver_opensl.h | 4 ---- platform/android/os_android.h | 1 - platform/android/power_android.h | 4 ---- platform/osx/joypad_osx.h | 1 - platform/uwp/os_uwp.h | 5 ----- scene/2d/animated_sprite.h | 3 --- scene/2d/cpu_particles_2d.h | 7 ------- scene/2d/listener_2d.h | 2 -- scene/2d/physics_body_2d.h | 2 -- scene/3d/cpu_particles.h | 7 ------- scene/3d/listener.h | 3 --- scene/3d/physics_body.h | 2 -- scene/3d/spatial.cpp | 5 ++--- scene/3d/sprite_3d.h | 6 ------ scene/3d/visual_instance.h | 3 --- scene/animation/animation_player.h | 1 - scene/animation/animation_tree.h | 6 ------ scene/gui/control.h | 4 ---- scene/gui/line_edit.h | 1 - scene/gui/popup.h | 1 - scene/gui/rich_text_label.h | 2 -- scene/gui/tabs.h | 1 - scene/gui/text_edit.h | 1 - scene/main/scene_tree.h | 4 ---- scene/resources/mesh.h | 1 - scene/resources/shape_2d.h | 1 - servers/audio/effects/audio_effect_limiter.h | 2 -- servers/audio/effects/audio_effect_record.h | 2 -- servers/audio/effects/audio_effect_reverb.h | 2 -- servers/physics_2d/physics_2d_server_wrap_mt.cpp | 1 - servers/physics_2d/physics_2d_server_wrap_mt.h | 2 -- 81 files changed, 4 insertions(+), 213 deletions(-) diff --git a/core/io/compression.h b/core/io/compression.h index 537fad77191..b26382e4dae 100644 --- a/core/io/compression.h +++ b/core/io/compression.h @@ -54,8 +54,6 @@ public: static int get_max_compressed_buffer_size(int p_src_size, Mode p_mode = MODE_ZSTD); static int decompress(uint8_t *p_dst, int p_dst_max_size, const uint8_t *p_src, int p_src_size, Mode p_mode = MODE_ZSTD); static int decompress_dynamic(PoolVector *p_dst, int p_max_dst_size, const uint8_t *p_src, int p_src_size, Mode p_mode); - - Compression(); }; #endif // COMPRESSION_H diff --git a/core/io/logger.h b/core/io/logger.h index f63d7cb02b5..dddb60cf2af 100644 --- a/core/io/logger.h +++ b/core/io/logger.h @@ -83,7 +83,6 @@ class RotatedFileLogger : public Logger { FileAccess *file; - void rotate_file_without_closing(); void close_file(); void clear_old_backups(); void rotate_file(); diff --git a/core/math/convex_hull.cpp b/core/math/convex_hull.cpp index 513bed34893..332e8a7a34e 100644 --- a/core/math/convex_hull.cpp +++ b/core/math/convex_hull.cpp @@ -592,8 +592,6 @@ private: IntermediateHull() { } - - void print(); }; enum Orientation { NONE, diff --git a/core/math/geometry.h b/core/math/geometry.h index 511a0db1e8a..592ec5ca558 100644 --- a/core/math/geometry.h +++ b/core/math/geometry.h @@ -42,8 +42,6 @@ #include "core/vector.h" class Geometry { - Geometry(); - public: static real_t get_closest_points_between_segments(const Vector2 &p1, const Vector2 &q1, const Vector2 &p2, const Vector2 &q2, Vector2 &c1, Vector2 &c2) { Vector2 d1 = q1 - p1; // Direction vector of segment S1. diff --git a/core/os/memory.h b/core/os/memory.h index cc32d59a200..5d1687ad258 100644 --- a/core/os/memory.h +++ b/core/os/memory.h @@ -41,7 +41,6 @@ #endif class Memory { - Memory(); #ifdef DEBUG_ENABLED static SafeNumeric mem_usage; static SafeNumeric max_usage; diff --git a/editor/code_editor.h b/editor/code_editor.h index 13feea3a7d1..58208cd35f5 100644 --- a/editor/code_editor.h +++ b/editor/code_editor.h @@ -54,7 +54,6 @@ public: void popup_find_line(TextEdit *p_edit); int get_line() const; - void set_text_editor(TextEdit *p_text_editor); GotoLineDialog(); }; @@ -99,7 +98,6 @@ class FindReplaceBar : public HBoxContainer { void _search_text_changed(const String &p_text); void _search_text_entered(const String &p_text); void _replace_text_entered(const String &p_text); - void _update_size(); protected: void _notification(int p_what); diff --git a/editor/create_dialog.h b/editor/create_dialog.h index fb639d65a14..95184d91043 100644 --- a/editor/create_dialog.h +++ b/editor/create_dialog.h @@ -76,8 +76,6 @@ class CreateDialog : public ConfirmationDialog { void _confirmed(); void _text_changed(const String &p_newtext); - Ref _get_editor_icon(const String &p_type) const; - void add_type(const String &p_type, HashMap &p_types, TreeItem *p_root, TreeItem **to_select); void select_type(const String &p_type); diff --git a/editor/editor_data.h b/editor/editor_data.h index 4120e802f69..90ba63b3bf5 100644 --- a/editor/editor_data.h +++ b/editor/editor_data.h @@ -134,8 +134,6 @@ private: List clipboard; UndoRedo undo_redo; - void _cleanup_history(); - Vector edited_scene; int current_edited_scene; diff --git a/editor/editor_help.h b/editor/editor_help.h index 442ff884d5e..4859197c304 100644 --- a/editor/editor_help.h +++ b/editor/editor_help.h @@ -57,7 +57,6 @@ class FindBar : public HBoxContainer { int results_count; - void _show_search(); void _hide_bar(); void _search_text_changed(const String &p_text); @@ -66,8 +65,6 @@ class FindBar : public HBoxContainer { void _update_results_count(); void _update_matches_label(); - void _update_size(); - protected: void _notification(int p_what); void _unhandled_input(const Ref &p_event); diff --git a/editor/editor_inspector.h b/editor/editor_inspector.h index e65acb4d758..3d3f8cbdce1 100644 --- a/editor/editor_inspector.h +++ b/editor/editor_inspector.h @@ -253,8 +253,6 @@ public: void unfold(); void fold(); - Object *get_edited_object(); - EditorInspectorSection(); ~EditorInspectorSection(); }; diff --git a/editor/editor_node.h b/editor/editor_node.h index a469448df7e..bbd1ed7dfd2 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -513,9 +513,6 @@ private: void _run(bool p_current = false, const String &p_custom = ""); - void _save_optimized(); - void _import_action(const String &p_action); - void _import(const String &p_file); void _add_to_recent_scenes(const String &p_scene); void _update_recent_scenes(); void _open_recent_scene(int p_idx); @@ -551,7 +548,6 @@ private: static void _editor_file_dialog_register(EditorFileDialog *p_dialog); static void _editor_file_dialog_unregister(EditorFileDialog *p_dialog); - void _cleanup_scene(); void _remove_edited_scene(bool p_change_tab = true); void _remove_scene(int index, bool p_change_tab = true); bool _find_and_save_resource(RES p_res, Map &processed, int32_t flags); @@ -645,8 +641,6 @@ private: static int build_callback_count; static EditorBuildCallback build_callbacks[MAX_BUILD_CALLBACKS]; - void _license_tree_selected(); - void _update_update_spinner(); Vector> resource_conversion_plugins; @@ -764,7 +758,6 @@ public: Viewport *get_scene_root() { return scene_root; } //root of the scene being edited void fix_dependencies(const String &p_for_file); - void clear_scene() { _cleanup_scene(); } int new_scene(); Error load_scene(const String &p_scene, bool p_ignore_broken_deps = false, bool p_set_inherited = false, bool p_clear_errors = true, bool p_force_open_imported = false, bool p_silent_change_tab = false); Error load_resource(const String &p_resource, bool p_ignore_broken_deps = false); @@ -837,8 +830,6 @@ public: bool is_scene_in_use(const String &p_path); - void scan_import_changes(); - void save_layout(); void open_export_template_manager(); @@ -879,7 +870,6 @@ public: EditorNode(); ~EditorNode(); - void get_singleton(const char *arg1, bool arg2); void add_resource_conversion_plugin(const Ref &p_plugin); void remove_resource_conversion_plugin(const Ref &p_plugin); diff --git a/editor/editor_path.h b/editor/editor_path.h index cabfa931d61..07f8b7244e4 100644 --- a/editor/editor_path.h +++ b/editor/editor_path.h @@ -47,7 +47,6 @@ class EditorPath : public Button { PopupMenu *sub_objects_menu; Vector objects; - EditorPath(); void _show_popup(); void _id_pressed(int p_idx); diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h index 040dc53e3bd..c3342acf4b7 100644 --- a/editor/filesystem_dock.h +++ b/editor/filesystem_dock.h @@ -207,8 +207,6 @@ private: void _set_file_display(bool p_active); void _fs_changed(); - void _tree_toggle_collapsed(); - void _select_file(const String &p_path, bool p_select_in_favorites = false); void _tree_activate_file(); void _file_list_activate_file(int p_idx); @@ -229,8 +227,6 @@ private: void _file_removed(String p_file); void _folder_removed(String p_folder); - void _files_moved(String p_old_file, String p_new_file); - void _folder_moved(String p_old_folder, String p_new_folder); void _resource_created() const; void _make_dir_confirm(); diff --git a/editor/groups_editor.h b/editor/groups_editor.h index cb1996bd14f..71577e7137b 100644 --- a/editor/groups_editor.h +++ b/editor/groups_editor.h @@ -123,7 +123,6 @@ class GroupsEditor : public VBoxContainer { void update_tree(); void _add_group(const String &p_group = ""); void _modify_group(Object *p_item, int p_column, int p_id); - void _close(); void _show_group_dialog(); diff --git a/editor/import/resource_importer_layered_texture.h b/editor/import/resource_importer_layered_texture.h index 8f31487be29..b6229403462 100644 --- a/editor/import/resource_importer_layered_texture.h +++ b/editor/import/resource_importer_layered_texture.h @@ -43,10 +43,6 @@ class ResourceImporterLayeredTexture : public ResourceImporter { static const char *compression_formats[]; protected: - static void _texture_reimport_srgb(const Ref &p_tex); - static void _texture_reimport_3d(const Ref &p_tex); - static void _texture_reimport_normal(const Ref &p_tex); - static ResourceImporterLayeredTexture *singleton; public: @@ -79,8 +75,6 @@ public: virtual Error import(const String &p_source_file, const String &p_save_path, const Map &p_options, List *r_platform_variants, List *r_gen_files = nullptr, Variant *r_metadata = nullptr); - void update_imports(); - virtual bool are_import_settings_valid(const String &p_path) const; virtual String get_import_settings_string() const; diff --git a/editor/plugins/abstract_polygon_2d_editor.h b/editor/plugins/abstract_polygon_2d_editor.h index 39b1fe3785d..1cf5202181d 100644 --- a/editor/plugins/abstract_polygon_2d_editor.h +++ b/editor/plugins/abstract_polygon_2d_editor.h @@ -100,7 +100,6 @@ protected: void _wip_changed(); void _wip_close(); void _wip_cancel(); - bool _delete_point(const Vector2 &p_gpoint); void _notification(int p_what); void _node_removed(Node *p_node); diff --git a/editor/plugins/animation_blend_space_1d_editor.h b/editor/plugins/animation_blend_space_1d_editor.h index d24e7f73967..c82b3fefb89 100644 --- a/editor/plugins/animation_blend_space_1d_editor.h +++ b/editor/plugins/animation_blend_space_1d_editor.h @@ -109,8 +109,6 @@ class AnimationNodeBlendSpace1DEditor : public AnimationTreeNodeEditorPlugin { void _edit_point_pos(double); void _open_editor(); - void _goto_parent(); - EditorFileDialog *open_file; Ref file_loaded; void _file_opened(const String &p_file); diff --git a/editor/plugins/animation_player_editor_plugin.h b/editor/plugins/animation_player_editor_plugin.h index eaa1d0fd876..ef40a5b0aff 100644 --- a/editor/plugins/animation_player_editor_plugin.h +++ b/editor/plugins/animation_player_editor_plugin.h @@ -187,7 +187,6 @@ class AnimationPlayerEditor : public VBoxContainer { void _animation_resource_edit(); void _scale_changed(const String &p_scale); void _dialog_action(String p_file); - void _seek_frame_changed(const String &p_frame); void _seek_value_changed(float p_value, bool p_set = false); void _blend_editor_next_changed(const int p_idx); @@ -216,7 +215,6 @@ class AnimationPlayerEditor : public VBoxContainer { void _pin_pressed(); - AnimationPlayerEditor(); ~AnimationPlayerEditor(); protected: diff --git a/editor/plugins/animation_tree_player_editor_plugin.h b/editor/plugins/animation_tree_player_editor_plugin.h index 2753f829651..7b2cf773ab3 100644 --- a/editor/plugins/animation_tree_player_editor_plugin.h +++ b/editor/plugins/animation_tree_player_editor_plugin.h @@ -82,7 +82,6 @@ class AnimationTreePlayerEditor : public Control { void _popup_edit_dialog(); - void _setup_edit_dialog(const StringName &p_node); PopupMenu *master_anim_popup; PopupMenu *node_popup; PopupMenu *add_popup; @@ -143,7 +142,6 @@ class AnimationTreePlayerEditor : public Control { void _edit_dialog_changede(String); void _edit_dialog_changedf(float); void _edit_dialog_changed(); - void _dialog_changed() const; ClickType _locate_click(const Point2 &p_click, StringName *p_node_id, int *p_slot_index) const; Point2 _get_slot_pos(const StringName &p_node_id, bool p_input, int p_slot); diff --git a/editor/plugins/asset_library_editor_plugin.h b/editor/plugins/asset_library_editor_plugin.h index 66d935dd185..0731827210c 100644 --- a/editor/plugins/asset_library_editor_plugin.h +++ b/editor/plugins/asset_library_editor_plugin.h @@ -282,10 +282,8 @@ class EditorAssetLibrary : public PanelContainer { void _search(int p_page = 0); void _rerun_search(int p_ignore); void _search_text_changed(const String &p_text = ""); - void _search_text_entered(const String &p_text = ""); void _api_request(const String &p_request, RequestType p_request_type, const String &p_arguments = ""); void _http_request_completed(int p_status, int p_code, const PoolStringArray &headers, const PoolByteArray &p_data); - void _http_download_completed(int p_status, int p_code, const PoolStringArray &headers, const PoolByteArray &p_data); void _filter_debounce_timer_timeout(); void _repository_changed(int p_repository_id); diff --git a/editor/plugins/canvas_item_editor_plugin.h b/editor/plugins/canvas_item_editor_plugin.h index c16e6545418..b549dd8c888 100644 --- a/editor/plugins/canvas_item_editor_plugin.h +++ b/editor/plugins/canvas_item_editor_plugin.h @@ -433,8 +433,6 @@ private: CanvasItem *ref_item; - void _add_canvas_item(CanvasItem *p_canvas_item); - void _save_canvas_item_ik_chain(const CanvasItem *p_canvas_item, List *p_bones_length, List *p_bones_state); void _save_canvas_item_state(List p_canvas_items, bool save_bones = false); void _restore_canvas_item_ik_chain(CanvasItem *p_canvas_item, const List *p_bones_state); @@ -448,7 +446,6 @@ private: bool updating_scroll; void _update_scroll(float); void _update_scrollbars(); - void _append_canvas_item(CanvasItem *p_item); void _snap_changed(); void _selection_result_pressed(int); void _selection_menu_hide(); @@ -537,7 +534,6 @@ private: const Node *p_current); void _set_anchors_preset(Control::LayoutPreset p_preset); - void _set_margins_preset(Control::LayoutPreset p_preset); void _set_anchors_and_margins_preset(Control::LayoutPreset p_preset); void _set_anchors_and_margins_to_keep_ratio(); @@ -577,9 +573,6 @@ protected: void _notification(int p_what); static void _bind_methods(); - void end_drag(); - void box_selection_start(Point2 &click); - bool box_selection_end(); HBoxContainer *get_panel_hb() { return hb; } @@ -605,9 +598,6 @@ protected: void set(Vector2 &v, float f) { v.y = f; } }; - template - void space_selected_items(); - static CanvasItemEditor *singleton; public: diff --git a/editor/plugins/resource_preloader_editor_plugin.h b/editor/plugins/resource_preloader_editor_plugin.h index 3ced4c32ec5..99c145c0dab 100644 --- a/editor/plugins/resource_preloader_editor_plugin.h +++ b/editor/plugins/resource_preloader_editor_plugin.h @@ -59,7 +59,6 @@ class ResourcePreloaderEditor : public PanelContainer { ResourcePreloader *preloader; void _load_pressed(); - void _load_scene_pressed(); void _files_load_request(const Vector &p_paths); void _paste_pressed(); void _remove_resource(const String &p_to_remove); diff --git a/editor/plugins/script_editor_plugin.h b/editor/plugins/script_editor_plugin.h index 440d49b2213..055cfd308d4 100644 --- a/editor/plugins/script_editor_plugin.h +++ b/editor/plugins/script_editor_plugin.h @@ -325,15 +325,12 @@ class ScriptEditor : public PanelContainer { bool use_space_indentation; bool convert_indent_on_save; - void _trim_trailing_whitespace(TextEdit *tx); - void _goto_script_line2(int p_line); void _goto_script_line(REF p_script, int p_line); void _set_execution(REF p_script, int p_line); void _clear_execution(REF p_script); void _breaked(bool p_breaked, bool p_can_debug); void _show_debugger(bool p_show); - void _update_window_menu(); void _script_created(Ref