diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-20 12:35:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-20 12:35:25 +0200 |
commit | 91294b4a2133fcf0091e11b8f54d75832a360456 (patch) | |
tree | 9555e8d2b9bbd00c379dbea2094e3bda52815fdb | |
parent | 327ab9d9f589e848217bd13193f7b051cd485bf9 (diff) | |
parent | 02cbf94022d9e2d05600d9fb13ed55d23f406d81 (diff) |
Merge pull request #52519 from e8newallm/52497-Remove_Unused_Variable
Removed unused Ref<Font> font variables
-rw-r--r-- | scene/gui/tab_container.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index 137ce7e96f..a423dc0173 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -538,7 +538,6 @@ void TabContainer::_notification(int p_what) { void TabContainer::_draw_tab(Ref<StyleBox> &p_tab_style, Color &p_font_color, int p_index, float p_x) { Control *control = get_tab_control(p_index); RID canvas = get_canvas_item(); - Ref<Font> font = get_theme_font(SNAME("font")); Color font_outline_color = get_theme_color(SNAME("font_outline_color")); int outline_size = get_theme_constant(SNAME("outline_size")); int icon_text_distance = get_theme_constant(SNAME("icon_separation")); @@ -1134,7 +1133,6 @@ Size2 TabContainer::get_minimum_size() const { Ref<StyleBox> tab_unselected = get_theme_stylebox(SNAME("tab_unselected")); Ref<StyleBox> tab_selected = get_theme_stylebox(SNAME("tab_selected")); Ref<StyleBox> tab_disabled = get_theme_stylebox(SNAME("tab_disabled")); - Ref<Font> font = get_theme_font(SNAME("font")); if (tabs_visible) { ms.y += MAX(MAX(tab_unselected->get_minimum_size().y, tab_selected->get_minimum_size().y), tab_disabled->get_minimum_size().y); |