summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-11 18:05:56 +0000
committerDavid Robillard <d@drobilla.net>2011-06-11 18:05:56 +0000
commit78cd5c462f1583131409abbaab596dcd419d3307 (patch)
treed0f0b80ff0f8d6c61f44fa1a73e8fdc5c52fec91
parent9d651dcd3b58d38b8b28f1b5b8709708934f71d6 (diff)
downloadpatchage-78cd5c462f1583131409abbaab596dcd419d3307.tar.gz
patchage-78cd5c462f1583131409abbaab596dcd419d3307.tar.bz2
patchage-78cd5c462f1583131409abbaab596dcd419d3307.zip
Remove dead code.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3385 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/AlsaDriver.cpp4
-rw-r--r--src/JackDriver.cpp13
2 files changed, 0 insertions, 17 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp
index 2ddb2b6..1e5490b 100644
--- a/src/AlsaDriver.cpp
+++ b/src/AlsaDriver.cpp
@@ -251,7 +251,6 @@ AlsaDriver::create_port_view_internal(
bool is_input = false;
bool is_duplex = false;
bool is_application = true;
- bool need_refresh = false;
int caps = snd_seq_port_info_get_capability(pinfo);
int type = snd_seq_port_info_get_type(pinfo);
@@ -272,7 +271,6 @@ AlsaDriver::create_port_view_internal(
if (is_duplex) {
split = true;
if (!_app->state_manager()->get_module_split(client_name, !is_application)) {
- need_refresh = true;
_app->state_manager()->set_module_split(client_name, true);
}
} else {
@@ -516,7 +514,6 @@ AlsaDriver::_refresh_main()
}
int caps = 0;
- int type = 0;
snd_seq_client_info_t* cinfo;
snd_seq_client_info_alloca(&cinfo);
@@ -545,7 +542,6 @@ AlsaDriver::_refresh_main()
snd_seq_get_any_client_info(_seq, ev->data.addr.client, cinfo);
snd_seq_get_any_port_info(_seq, ev->data.addr.client, ev->data.addr.port, pinfo);
caps = snd_seq_port_info_get_capability(pinfo);
- type = snd_seq_port_info_get_type(pinfo);
if (!ignore(ev->data.addr))
_events.push(PatchageEvent(PatchageEvent::PORT_CREATION,
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp
index 68aa612..3897bb6 100644
--- a/src/JackDriver.cpp
+++ b/src/JackDriver.cpp
@@ -254,19 +254,6 @@ JackDriver::refresh()
_app->canvas()->add_module(client1_name, m);
}
- // FIXME: leak? jack docs don't say
- const char* const type_str = jack_port_type(port);
- PortType port_type;
-
- if (!strcmp(type_str, JACK_DEFAULT_AUDIO_TYPE)) {
- port_type = JACK_AUDIO;
- } else if (!strcmp(type_str, JACK_DEFAULT_MIDI_TYPE)) {
- port_type = JACK_MIDI;
- } else {
- Raul::warn << ports[i] << " has unknown type \'" << type_str << "\'" << endl;
- continue;
- }
-
if (!m->get_port(jack_port_short_name(port)))
create_port(*m, port, PortID());
}