From 653b11360751125c853bdc086a64c4653044e6fd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 18 Jul 2016 14:39:32 -0400 Subject: fix unused variable warnings and code tidy --- gtk2_ardour/ardour_ui_ed.cc | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index 9a8fc904e6..d10e673396 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -596,18 +596,6 @@ ARDOUR_UI::build_menu_bar () use_menubar_as_top_menubar (); #endif - bool wall_clock = false; - bool disk_space = false; - - if (!Profile->get_small_screen()) { -#ifndef __APPLE__ - // OSX provides its own wallclock, thank you very much - wall_clock = true; -#endif - disk_space = true; - } - - hbox->pack_end (error_alert_button, false, false, 2); hbox->pack_end (wall_clock_label, false, false, 2); @@ -626,9 +614,10 @@ ARDOUR_UI::build_menu_bar () menu_bar_base.add (menu_hbox); #ifndef __APPLE__ - _status_bar_visibility.add (&wall_clock_label, X_("WallClock"), _("Wall Clock"), wall_clock); + // OSX provides its own wallclock, thank you very much + _status_bar_visibility.add (&wall_clock_label, X_("WallClock"), _("Wall Clock"), true); #endif - _status_bar_visibility.add (&disk_space_label, X_("Disk"), _("Disk Space"), disk_space); + _status_bar_visibility.add (&disk_space_label, X_("Disk"), _("Disk Space"), !Profile->get_small_screen()); _status_bar_visibility.add (&cpu_load_label, X_("DSP"), _("DSP"), true); _status_bar_visibility.add (&xrun_label, X_("XRun"), _("X-run"), false); _status_bar_visibility.add (&peak_thread_work_label,X_("Peakfile"), _("Active Peak-file Work"), false); -- cgit v1.2.3