summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-07-18 14:39:32 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-07-18 14:39:32 -0400
commit653b11360751125c853bdc086a64c4653044e6fd (patch)
tree231a874da3dc1d3e39e0abb9ec50317fbb994477
parentcf4b4dea3e38bbddb9a1960fcfd4205bb58c1837 (diff)
fix unused variable warnings and code tidy
-rw-r--r--gtk2_ardour/ardour_ui_ed.cc17
1 files 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);