From 58fcbc2b0637a0aa42739a638cfa5a1c5e2faa46 Mon Sep 17 00:00:00 2001 From: theludovyc Date: Wed, 8 Apr 2020 16:29:53 +0200 Subject: [PATCH] Remove unused ofs variable (cherry picked from commit 875c994109184147dd0ef82df1d2adcf82873067) --- scene/gui/tree.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index da431d2a787..30349ebab69 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -3034,13 +3034,6 @@ void Tree::_notification(int p_what) { draw_item(Point2(), draw_ofs, draw_size, root); } - int ofs = 0; - - for (int i = 0; i < (columns.size() - 1 - 1); i++) { - - ofs += get_column_width(i); - } - if (show_column_titles) { //title buttons