summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_streamview.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-10-20 11:43:08 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-10-20 11:43:08 +0000
commita9e5c95bd248efac997848341ad617f18540561e (patch)
treec9d3fe6ba4f21e083519e1f6834fe290c7883957 /gtk2_ardour/midi_streamview.cc
parentd789c9bed73390139cc28899a6663e5459c3e7d7 (diff)
remove unused static function
git-svn-id: svn://localhost/ardour2/branches/3.0@10247 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_streamview.cc')
-rw-r--r--gtk2_ardour/midi_streamview.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/gtk2_ardour/midi_streamview.cc b/gtk2_ardour/midi_streamview.cc
index b3caa8d827..2c8c91ebcd 100644
--- a/gtk2_ardour/midi_streamview.cc
+++ b/gtk2_ardour/midi_streamview.cc
@@ -103,32 +103,6 @@ MidiStreamView::~MidiStreamView ()
{
}
-static void
-veto_note_range(uint8_t& min, uint8_t& max)
-{
- /* Legal notes, thanks */
- clamp_to_0_127(min);
- clamp_to_0_127(max);
-
- /* Always display at least one octave in [0, 127] */
- if (max == 127) {
- if (min > (127 - 11)) {
- min = 127 - 11;
- }
- } else if (max < min + 11) {
- uint8_t d = 11 - (max - min);
- if (max + d/2 > 127) {
- min -= d;
- } else {
- min -= d / 2;
- max += d / 2;
- }
- }
- assert(max - min >= 11);
- assert(max <= 127);
- assert(min <= 127);
-}
-
RegionView*
MidiStreamView::create_region_view (boost::shared_ptr<Region> r, bool /*wfd*/, bool)
{