From ff0f6e493e90b7ecf891b7bcfa2b5b39c51b2fc3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 18 Nov 2011 20:44:13 +0000 Subject: [PATCH] Fix warning. git-svn-id: svn://localhost/ardour2/branches/3.0@10688 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/audio_clock.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index b87ecde127..e8c25ee2fa 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -1132,8 +1132,6 @@ AudioClock::index_to_field (int index) const return Timecode_Seconds; } else if (index < 13) { return Timecode_Frames; - } else { - return Field (0); } break; case BBT: @@ -1143,11 +1141,8 @@ AudioClock::index_to_field (int index) const return Beats; } else if (index < 12) { return Ticks; - } else { - return Field (0); } break; - case MinSec: if (index < 3) { return Timecode_Hours; @@ -1157,15 +1152,14 @@ AudioClock::index_to_field (int index) const return MS_Seconds; } else if (index < 12) { return MS_Milliseconds; - } else { - return Field (0); } break; - case Frames: return AudioFrames; break; } + + return Field (0); } bool