summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/controls.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-11 13:03:41 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-11 13:03:41 +0000
commit02c8ccf348fb16b740089c3ec39053a8b00c1f82 (patch)
tree12cd938283afdb6401df5f80556937ef97ef0dbf /libs/surfaces/mackie/controls.cc
parent0860570c8cccb50229e5321477a72bce915f7235 (diff)
move all code to construct MIDI messages into relevant Control/Strip/Surface object; remove MackieMidiBuilder
git-svn-id: svn://localhost/ardour2/branches/3.0@11895 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/controls.cc')
-rw-r--r--libs/surfaces/mackie/controls.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/libs/surfaces/mackie/controls.cc b/libs/surfaces/mackie/controls.cc
index 972a28cb0d..6c9fb559f4 100644
--- a/libs/surfaces/mackie/controls.cc
+++ b/libs/surfaces/mackie/controls.cc
@@ -22,13 +22,11 @@
#include "controls.h"
#include "types.h"
-#include "mackie_midi_builder.h"
#include "surface.h"
#include "control_group.h"
#include "button.h"
#include "led.h"
-#include "ledring.h"
#include "pot.h"
#include "fader.h"
#include "jog.h"
@@ -75,10 +73,6 @@ ostream & Mackie::operator << (ostream & os, const Mackie::Control & control)
os << " { ";
os << "name: " << control.name();
os << ", ";
- os << "id: " << "0x" << setw(4) << setfill('0') << hex << control.id() << setfill(' ');
- os << ", ";
- os << "type: " << "0x" << setw(2) << setfill('0') << hex << control.type() << setfill(' ');
- os << ", ";
os << "raw_id: " << "0x" << setw(2) << setfill('0') << hex << control.raw_id() << setfill(' ');
os << ", ";
os << "group: " << control.group().name();
@@ -88,16 +82,6 @@ ostream & Mackie::operator << (ostream & os, const Mackie::Control & control)
}
Control*
-Pot::factory (Surface& surface, int id, const char* name, Group& group)
-{
- Pot* p = new Pot (id, name, group);
- surface.pots[id] = p;
- surface.controls.push_back (p);
- group.add (*p);
- return p;
-}
-
-Control*
Jog::factory (Surface& surface, int id, const char* name, Group& group)
{
Jog* j = new Jog (id, name, group);