Skip to content

Commit

Permalink
LayerTree: remove unused variable quick_layer
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolforg committed Jan 19, 2021
1 parent 3e92254 commit 4951d7f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
12 changes: 0 additions & 12 deletions synfig-studio/src/gui/trees/layertree.cpp
Expand Up @@ -654,18 +654,6 @@ LayerTree::on_selection_changed()
last_top_selected_layer=nullptr;
}
}

if(layer_list.empty())
{
return;
}

if(layer_list.size()==1 && (*layer_list.begin())->get_param("amount").is_valid()&& (*layer_list.begin())->get_param("amount").same_type_as(Real()))
{
quick_layer=*layer_list.begin();
}
else
quick_layer=nullptr;
}

void
Expand Down
2 changes: 0 additions & 2 deletions synfig-studio/src/gui/trees/layertree.h
Expand Up @@ -83,8 +83,6 @@ class LayerTree : public Gtk::Widget
Gtk::TreeView layer_tree_view_;
Gtk::TreeView param_tree_view_;

synfig::Layer::Handle quick_layer;

Glib::RefPtr<LayerTreeStore> layer_tree_store_;

Glib::RefPtr<LayerParamTreeStore> param_tree_store_;
Expand Down

0 comments on commit 4951d7f

Please sign in to comment.