diff --git a/scene/2d/audio_stream_player_2d.h b/scene/2d/audio_stream_player_2d.h index c3fb2c6a5af..b3e996922a9 100644 --- a/scene/2d/audio_stream_player_2d.h +++ b/scene/2d/audio_stream_player_2d.h @@ -48,12 +48,6 @@ private: }; - struct Output { - AudioFrame vol; - int bus_index = 0; - Viewport *viewport = nullptr; //pointer only used for reference to previous mix - }; - AudioStreamPlayerInternal *internal = nullptr; SafeNumeric setplay{ -1.0 }; diff --git a/scene/2d/cpu_particles_2d.h b/scene/2d/cpu_particles_2d.h index f1554c2708a..dc838622abc 100644 --- a/scene/2d/cpu_particles_2d.h +++ b/scene/2d/cpu_particles_2d.h @@ -122,14 +122,6 @@ private: } }; - struct SortAxis { - const Particle *particles = nullptr; - Vector2 axis; - bool operator()(int p_a, int p_b) const { - return axis.dot(particles[p_a].transform[2]) < axis.dot(particles[p_b].transform[2]); - } - }; - // bool one_shot = false; @@ -178,7 +170,6 @@ private: Vector emission_points; Vector emission_normals; Vector emission_colors; - int emission_point_count = 0; real_t emission_ring_inner_radius = 0.8; real_t emission_ring_radius = 1.0; diff --git a/scene/2d/polygon_2d.h b/scene/2d/polygon_2d.h index af7f20f484f..57c6596603d 100644 --- a/scene/2d/polygon_2d.h +++ b/scene/2d/polygon_2d.h @@ -56,7 +56,6 @@ class Polygon2D : public Node2D { Size2 tex_scale = Vector2(1, 1); Vector2 tex_ofs; - bool tex_tile = true; real_t tex_rot = 0.0; bool invert = false; real_t invert_border = 100.0; diff --git a/scene/2d/sprite_2d.h b/scene/2d/sprite_2d.h index 0ff12e937a0..20c67594fd0 100644 --- a/scene/2d/sprite_2d.h +++ b/scene/2d/sprite_2d.h @@ -37,8 +37,6 @@ class Sprite2D : public Node2D { GDCLASS(Sprite2D, Node2D); Ref texture; - Color specular_color; - real_t shininess = 0.0; #ifdef TOOLS_ENABLED bool dragging_to_resize_rect = false; diff --git a/scene/2d/visible_on_screen_notifier_2d.h b/scene/2d/visible_on_screen_notifier_2d.h index e4e7cd646ad..39f0191b8e0 100644 --- a/scene/2d/visible_on_screen_notifier_2d.h +++ b/scene/2d/visible_on_screen_notifier_2d.h @@ -36,8 +36,6 @@ class Viewport; class VisibleOnScreenNotifier2D : public Node2D { GDCLASS(VisibleOnScreenNotifier2D, Node2D); - HashSet viewports; - Rect2 rect; bool show_rect = true; diff --git a/scene/3d/cpu_particles_3d.h b/scene/3d/cpu_particles_3d.h index 20d84077a63..0ef996a59da 100644 --- a/scene/3d/cpu_particles_3d.h +++ b/scene/3d/cpu_particles_3d.h @@ -178,7 +178,6 @@ private: Vector emission_points; Vector emission_normals; Vector emission_colors; - int emission_point_count = 0; Vector3 emission_ring_axis; real_t emission_ring_height = 0.0; real_t emission_ring_radius = 0.0; diff --git a/scene/3d/label_3d.h b/scene/3d/label_3d.h index 0f14b1b7c41..29d0cacebf3 100644 --- a/scene/3d/label_3d.h +++ b/scene/3d/label_3d.h @@ -136,7 +136,6 @@ private: RID text_rid; Vector lines_rid; - RID base_material; StandardMaterial3D::BillboardMode billboard_mode = StandardMaterial3D::BILLBOARD_DISABLED; StandardMaterial3D::TextureFilter texture_filter = StandardMaterial3D::TEXTURE_FILTER_LINEAR_WITH_MIPMAPS; diff --git a/scene/3d/lightmap_gi.h b/scene/3d/lightmap_gi.h index d9c1c1ed29d..c50cb7c4de4 100644 --- a/scene/3d/lightmap_gi.h +++ b/scene/3d/lightmap_gi.h @@ -229,12 +229,6 @@ private: void _assign_lightmaps(); void _clear_lightmaps(); - struct BakeTimeData { - String text; - int pass = 0; - uint64_t last_step = 0; - }; - struct BSPSimplex { int vertices[4] = {}; int planes[4] = {}; diff --git a/scene/3d/path_3d.h b/scene/3d/path_3d.h index dfb4705997c..8ea04970a4b 100644 --- a/scene/3d/path_3d.h +++ b/scene/3d/path_3d.h @@ -89,7 +89,6 @@ private: bool cubic = true; bool loop = true; bool tilt_enabled = true; - bool transform_dirty = true; bool use_model_front = false; RotationMode rotation_mode = ROTATION_XYZ; diff --git a/scene/3d/physics/spring_arm_3d.h b/scene/3d/physics/spring_arm_3d.h index 996496e8c28..831d5ea97e2 100644 --- a/scene/3d/physics/spring_arm_3d.h +++ b/scene/3d/physics/spring_arm_3d.h @@ -40,7 +40,6 @@ class SpringArm3D : public Node3D { HashSet excluded_objects; real_t spring_length = 1.0; real_t current_spring_length = 0.0; - bool keep_child_basis = false; uint32_t mask = 1; real_t margin = 0.01; diff --git a/scene/3d/voxelizer.h b/scene/3d/voxelizer.h index 5c5f7c7cdc4..13e808cd214 100644 --- a/scene/3d/voxelizer.h +++ b/scene/3d/voxelizer.h @@ -52,7 +52,6 @@ private: float albedo[3] = {}; //albedo in RGB24 float emission[3] = {}; //accumulated light in 16:16 fixed point (needs to be integer for moving lights fast) float normal[3] = {}; - uint32_t used_sides = 0; float alpha = 0.0; //used for upsampling uint16_t x = 0; uint16_t y = 0; diff --git a/scene/animation/animation_blend_tree.h b/scene/animation/animation_blend_tree.h index b5f7ec5d1e6..6830cddf620 100644 --- a/scene/animation/animation_blend_tree.h +++ b/scene/animation/animation_blend_tree.h @@ -48,9 +48,6 @@ class AnimationNodeAnimation : public AnimationRootNode { bool stretch_time_scale = true; double start_offset = 0.0; - uint64_t last_version = 0; - bool skip = false; - public: enum PlayMode { PLAY_MODE_FORWARD, @@ -343,9 +340,6 @@ class AnimationNodeTransition : public AnimationNodeSync { StringName current_state = PNAME("current_state"); StringName transition_request = PNAME("transition_request"); - StringName prev_frame_current = "pf_current"; - StringName prev_frame_current_idx = "pf_current_idx"; - double xfade_time = 0.0; Ref xfade_curve; bool allow_transition_to_self = false; diff --git a/scene/animation/animation_player.h b/scene/animation/animation_player.h index 4aa2411d0a2..a968905d5ba 100644 --- a/scene/animation/animation_player.h +++ b/scene/animation/animation_player.h @@ -126,7 +126,6 @@ private: StringName autoplay; - bool reset_on_save = true; bool movie_quit_on_finish = false; void _play(const StringName &p_name, double p_custom_blend = -1, float p_custom_scale = 1.0, bool p_from_end = false); diff --git a/scene/gui/flow_container.h b/scene/gui/flow_container.h index 13d1abc31fa..81258fb51f4 100644 --- a/scene/gui/flow_container.h +++ b/scene/gui/flow_container.h @@ -52,7 +52,6 @@ private: int cached_size = 0; int cached_line_count = 0; int cached_line_max_child_count = 0; - int cached_items_on_last_row = 0; bool vertical = false; bool reverse_fill = false; diff --git a/scene/gui/graph_frame.h b/scene/gui/graph_frame.h index 46861377f99..4542ddbcd70 100644 --- a/scene/gui/graph_frame.h +++ b/scene/gui/graph_frame.h @@ -37,12 +37,6 @@ class HBoxContainer; class GraphFrame : public GraphElement { GDCLASS(GraphFrame, GraphElement); - struct _MinSizeCache { - int min_size = 0; - bool will_stretch = false; - int final_size = 0; - }; - struct ThemeCache { Ref panel; Ref panel_selected; diff --git a/scene/gui/item_list.h b/scene/gui/item_list.h index 7c8721dedc3..05410df88fe 100644 --- a/scene/gui/item_list.h +++ b/scene/gui/item_list.h @@ -132,7 +132,6 @@ private: int max_columns = 1; Size2 fixed_icon_size; - Size2 max_item_size_cache; Size2 fixed_tag_icon_size; int defer_select_single = -1; diff --git a/scene/gui/menu_bar.h b/scene/gui/menu_bar.h index 381bfd1efa8..77193d39472 100644 --- a/scene/gui/menu_bar.h +++ b/scene/gui/menu_bar.h @@ -71,7 +71,6 @@ class MenuBar : public Control { int active_menu = -1; Vector2i old_mouse_pos; - ObjectID shortcut_context; struct ThemeCache { Ref normal; diff --git a/scene/gui/menu_button.h b/scene/gui/menu_button.h index 8b20e17e5ef..93dec8d6dc3 100644 --- a/scene/gui/menu_button.h +++ b/scene/gui/menu_button.h @@ -37,7 +37,6 @@ class MenuButton : public Button { GDCLASS(MenuButton, Button); - bool clicked = false; bool switch_on_hover = false; bool disable_shortcuts = false; PopupMenu *popup = nullptr; diff --git a/scene/gui/scroll_bar.h b/scene/gui/scroll_bar.h index 73c8d8421a8..9c1944a6ddd 100644 --- a/scene/gui/scroll_bar.h +++ b/scene/gui/scroll_bar.h @@ -74,11 +74,9 @@ class ScrollBar : public Range { Vector2 drag_node_accum; Vector2 drag_node_from; Vector2 last_drag_node_accum; - float last_drag_node_time = 0.0; float time_since_motion = 0.0; bool drag_node_touching = false; bool drag_node_touching_deaccel = false; - bool click_handled = false; bool scrolling = false; double target_scroll = 0.0; diff --git a/scene/gui/video_stream_player.h b/scene/gui/video_stream_player.h index 94c74481dc8..76c9797b6a5 100644 --- a/scene/gui/video_stream_player.h +++ b/scene/gui/video_stream_player.h @@ -37,19 +37,12 @@ class VideoStreamPlayer : public Control { GDCLASS(VideoStreamPlayer, Control); - struct Output { - AudioFrame vol; - int bus_index = 0; - Viewport *viewport = nullptr; //pointer only used for reference to previous mix - }; Ref playback; Ref stream; int sp_get_channel_count() const; bool mix(AudioFrame *p_buffer, int p_frames); - RID stream_rid; - Ref texture; Size2 texture_size; void texture_changed(const Ref &p_texture); diff --git a/scene/resources/2d/navigation_polygon.h b/scene/resources/2d/navigation_polygon.h index 4b2532e6b37..9f1ce76a575 100644 --- a/scene/resources/2d/navigation_polygon.h +++ b/scene/resources/2d/navigation_polygon.h @@ -41,7 +41,6 @@ class NavigationPolygon : public Resource { Vector vertices; Vector> polygons; Vector> outlines; - Vector> baked_outlines; mutable Rect2 item_rect; mutable bool rect_cache_dirty = true; diff --git a/scene/resources/animation.h b/scene/resources/animation.h index 013d0b11238..623ae9d5456 100644 --- a/scene/resources/animation.h +++ b/scene/resources/animation.h @@ -168,7 +168,6 @@ private: struct ValueTrack : public Track { UpdateMode update_mode = UPDATE_CONTINUOUS; - bool update_on_seek = false; LocalVector> values; ValueTrack() { diff --git a/scene/resources/material.h b/scene/resources/material.h index cc4a7889977..00ef28a617a 100644 --- a/scene/resources/material.h +++ b/scene/resources/material.h @@ -551,7 +551,6 @@ private: float anisotropy = 0.0f; float heightmap_scale = 0.0f; float subsurface_scattering_strength = 0.0f; - float transmittance_amount = 0.0f; Color transmittance_color; float transmittance_depth = 0.0f; float transmittance_boost = 0.0f; diff --git a/scene/resources/particle_process_material.h b/scene/resources/particle_process_material.h index 0a90306b5b8..8c6549a93fa 100644 --- a/scene/resources/particle_process_material.h +++ b/scene/resources/particle_process_material.h @@ -334,8 +334,6 @@ private: Vector3 emission_shape_offset; Vector3 emission_shape_scale; - bool anim_loop = false; - bool turbulence_enabled; Vector3 turbulence_noise_speed; Ref turbulence_color_ramp;