summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_scene_change.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-11-10 21:44:02 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-11-10 23:17:27 -0500
commit9254e80c396265f484adb3b7bf5f0b502d096107 (patch)
tree0404ffd8e40d884a5241d82c0a72589b398c98a4 /libs/ardour/midi_scene_change.cc
parente27651d31521a527a2acaf570512a44163b5c638 (diff)
refactor MIDISceneChange color property addition by moving it into SceneChange to anticipate other types of SceneChange objects (e.g. OSC)
Diffstat (limited to 'libs/ardour/midi_scene_change.cc')
-rw-r--r--libs/ardour/midi_scene_change.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/libs/ardour/midi_scene_change.cc b/libs/ardour/midi_scene_change.cc
index db903c21eb..aede5c4b90 100644
--- a/libs/ardour/midi_scene_change.cc
+++ b/libs/ardour/midi_scene_change.cc
@@ -28,13 +28,10 @@
using namespace PBD;
using namespace ARDOUR;
-const uint32_t MIDISceneChange::out_of_bound_color = 0x00000000; /* note: zero alpha means invisible, which acts as out-of-bound signal */
-
MIDISceneChange::MIDISceneChange (int c, int b, int p)
: _bank (b)
, _program (p)
, _channel (c & 0xf)
- , _color (out_of_bound_color)
{
if (_bank > 16384) {
_bank = -1;
@@ -49,7 +46,6 @@ MIDISceneChange::MIDISceneChange (const XMLNode& node, int version)
: _bank (-1)
, _program (-1)
, _channel (-1)
- , _color (out_of_bound_color)
{
set_state (node, version);
}
@@ -160,16 +156,3 @@ MIDISceneChange::operator==(const MIDISceneChange& other) const
_bank == other._bank &&
_channel == other._channel;
}
-
-void
-MIDISceneChange::set_color (uint32_t c)
-{
- _color = c;
- ColorChanged (); /* EMIT SIGNAL */
-}
-
-uint32_t
-MIDISceneChange::color() const
-{
- return _color;
-}