From 0350e58eb787d4285d305db12ee72df8e7e4fe55 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Wed, 26 Jan 2022 11:24:02 -0600 Subject: [PATCH] remove unused variables (fix warnings) --- gtk2_ardour/trigger_master.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gtk2_ardour/trigger_master.cc b/gtk2_ardour/trigger_master.cc index 4a80ab38e6..2e9b0646fb 100644 --- a/gtk2_ardour/trigger_master.cc +++ b/gtk2_ardour/trigger_master.cc @@ -243,7 +243,6 @@ TriggerMaster::render (ArdourCanvas::Rect const& area, Cairo::RefPtritems ()); - items.push_back (CheckMenuElem (_("Toggle Monitor Thru"), sigc::mem_fun (*this, &TriggerMaster::toggle_thru))); if (_triggerbox->pass_thru ()) { _ignore_menu_action = true; @@ -593,7 +589,6 @@ CueMaster::render (ArdourCanvas::Rect const& area, Cairo::RefPtr } float width = _rect.width (); - float height = _rect.height (); const double scale = UIConfiguration::instance ().get_ui_scale (); @@ -668,7 +663,6 @@ CueMaster::_size_allocate (ArdourCanvas::Rect const& alloc) const double scale = UIConfiguration::instance ().get_ui_scale (); _poly_margin = 2 * scale; - const Distance width = _rect.width (); const Distance height = _rect.height (); _poly_size = height - (_poly_margin * 2); @@ -679,9 +673,6 @@ CueMaster::_size_allocate (ArdourCanvas::Rect const& alloc) p.push_back (Duple (_poly_size, _poly_size)); p.push_back (Duple (_poly_size, _poly_margin)); stop_shape->set (p); - - float tleft = _poly_size + (_poly_margin * 3); - float twidth = width - _poly_size - (_poly_margin * 3); } void @@ -756,9 +747,6 @@ CueMaster::context_menu () b = BBT_Offset (-1, 0, 0); qitems.push_back (MenuElem (TriggerUI::quantize_length_to_string (b), sigc::bind (sigc::mem_fun (*this, &CueMaster::set_all_quantization), b))); - Menu* load_menu = manage (new Menu); - MenuList& loitems (load_menu->items ()); - // items.push_back (CheckMenuElem (_("Toggle Monitor Thru"), sigc::mem_fun (*this, &CueMaster::toggle_thru))); // if (_triggerbox->pass_thru ()) { // _ignore_menu_action = true;