Skip to content

Commit 17c7a3b

Browse files
committed
Remove unused private variables in godot/editor
1 parent 78d9194 commit 17c7a3b

31 files changed

Lines changed: 0 additions & 57 deletions

editor/animation/animation_bezier_editor.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ class AnimationBezierTrackEdit : public Control {
6262
bool read_only = false;
6363
int selected_track = -1;
6464

65-
Vector<Rect2> view_rects;
66-
6765
Ref<Texture2D> bezier_icon;
6866
Ref<Texture2D> bezier_handle_icon;
6967
Ref<Texture2D> selected_icon;
@@ -107,8 +105,6 @@ class AnimationBezierTrackEdit : public Control {
107105
bool _is_track_displayed(int p_track_index);
108106
bool _is_track_curves_displayed(int p_track_index);
109107

110-
Vector2 insert_at_pos;
111-
112108
typedef Pair<int, int> IntPair;
113109

114110
bool moving_selection_attempt = false;
@@ -141,7 +137,6 @@ class AnimationBezierTrackEdit : public Control {
141137
int moving_handle_track = 0;
142138
Vector2 moving_handle_left;
143139
Vector2 moving_handle_right;
144-
int moving_handle_mode = 0; // value from Animation::HandleMode
145140

146141
struct PairHasher {
147142
static _FORCE_INLINE_ uint32_t hash(const Pair<int, int> &p_value) {

editor/animation/animation_blend_space_1d_editor.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ class AnimationNodeBlendSpace1DEditor : public AnimationTreeNodeEditorPlugin {
4949
Ref<AnimationNodeBlendSpace1D> blend_space;
5050
bool read_only = false;
5151

52-
HBoxContainer *goto_parent_hb = nullptr;
53-
Button *goto_parent = nullptr;
54-
5552
PanelContainer *panel = nullptr;
5653
Button *tool_blend = nullptr;
5754
Button *tool_select = nullptr;

editor/animation/animation_track_editor_plugins.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434

3535
class AnimationTrackEditBool : public AnimationTrackEdit {
3636
GDCLASS(AnimationTrackEditBool, AnimationTrackEdit);
37-
Ref<Texture2D> icon_checked;
38-
Ref<Texture2D> icon_unchecked;
3937

4038
public:
4139
virtual int get_key_height() const override;

editor/debugger/debug_adapter/debug_adapter_server.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class DebugAdapterServer : public EditorPlugin {
3939
DebugAdapterProtocol protocol;
4040

4141
int remote_port = 6006;
42-
bool thread_running = false;
4342
bool started = false;
4443
bool polling = false;
4544
static void thread_func(void *p_userdata);

editor/debugger/editor_expression_evaluator.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,12 @@ class Button;
3636
class CheckBox;
3737
class EditorDebuggerInspector;
3838
class LineEdit;
39-
class RemoteDebuggerPeer;
4039
class ScriptEditorDebugger;
4140

4241
class EditorExpressionEvaluator : public VBoxContainer {
4342
GDCLASS(EditorExpressionEvaluator, VBoxContainer)
4443

4544
private:
46-
Ref<RemoteDebuggerPeer> peer;
47-
4845
LineEdit *expression_input = nullptr;
4946
CheckBox *clear_on_run_checkbox = nullptr;
5047
Button *evaluate_btn = nullptr;

editor/debugger/editor_profiler.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ class EditorProfiler : public VBoxContainer {
124124
int total_metrics = 0;
125125
int last_metric = -1;
126126

127-
int max_functions = 0;
128-
129127
bool updating_frame = false;
130128

131129
int hover_metric = -1;

editor/doc/editor_help.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,14 @@ class EditorHelp : public VBoxContainer {
112112
int description_line = 0;
113113

114114
RichTextLabel *class_desc = nullptr;
115-
HSplitContainer *h_split = nullptr;
116115
inline static DocTools *doc = nullptr;
117116
inline static DocTools *ext_doc = nullptr;
118117

119-
ConfirmationDialog *search_dialog = nullptr;
120118
LineEdit *search = nullptr;
121119
FindBar *find_bar = nullptr;
122120
HBoxContainer *status_bar = nullptr;
123121
Button *toggle_files_button = nullptr;
124122

125-
String base_path;
126-
127123
struct ThemeCache {
128124
Ref<StyleBox> background_style;
129125

editor/docks/filesystem_dock.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ class FileSystemDock : public EditorDock {
177177
PackedStringArray searched_tokens;
178178
Vector<String> uncollapsed_paths_before_search;
179179

180-
TextureRect *search_icon = nullptr;
181180
HBoxContainer *path_hb = nullptr;
182181

183182
FileListDisplayMode file_list_display_mode;

editor/docks/import_dock.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ class ImportDock : public EditorDock {
5252
MenuButton *preset = nullptr;
5353
EditorInspector *import_opts = nullptr;
5454

55-
List<PropertyInfo> properties;
56-
HashMap<StringName, Variant> property_values;
57-
5855
ConfirmationDialog *reimport_confirm = nullptr;
5956
Label *cleanup_warning = nullptr;
6057
Label *label_warning = nullptr;

editor/docks/scene_tree_dock.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ class SceneTreeDock : public EditorDock {
130130
SceneTreeEditor *scene_tree = nullptr;
131131
Control *remote_tree = nullptr;
132132

133-
HBoxContainer *tool_hbc = nullptr;
134133
void _tool_selected(int p_tool, bool p_confirm_override = false);
135134
void _property_selected(int p_idx);
136135

@@ -167,7 +166,6 @@ class SceneTreeDock : public EditorDock {
167166

168167
LineEdit *filter = nullptr;
169168
PopupMenu *filter_quick_menu = nullptr;
170-
TextureRect *filter_icon = nullptr;
171169

172170
PopupMenu *menu = nullptr;
173171
PopupMenu *menu_subresources = nullptr;

0 commit comments

Comments
 (0)