summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortheludovyc <theludovyc@gmail.com>2020-04-08 16:29:53 +0200
committertheludovyc <theludovyc@gmail.com>2020-04-08 20:00:43 +0200
commit875c994109184147dd0ef82df1d2adcf82873067 (patch)
tree421f7deae4506632364811768290471df3a614fc
parent7e2de76236ef17e4a94bbcd2cf8f9bec206a5ff6 (diff)
Remove unused ofs variable
-rw-r--r--scene/gui/tree.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index a7acaae8df..509a52d36a 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -3045,13 +3045,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