Skip to content

Commit

Permalink
AUDIO: Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jun 10, 2011
1 parent a1f12c2 commit bdad493
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions audio/mididrv.cpp
Expand Up @@ -219,8 +219,6 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
}
}

reslt = 0;

// If the selected driver did not match the flags setting,
// we try to determine a suitable and "optimal" music driver.
const MusicPlugin::List p = MusicMan.getPlugins();
Expand Down Expand Up @@ -268,7 +266,6 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
GUI::MessageDialog dialog(warningMsg);
dialog.runModal();
}
hdl = 0;
}
}

Expand All @@ -283,9 +280,6 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
hdl = d->getHandle();
if (checkDevice(hdl))
return hdl;
else
// No warning here, since the user hasn't expressly requested anything.
hdl = 0;
}
}
}
Expand All @@ -301,9 +295,6 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
hdl = d->getHandle();
if (checkDevice(hdl))
return hdl;
else
// No warning here, since the user hasn't expressly requested anything.
hdl = 0;
}
}
}
Expand Down Expand Up @@ -357,15 +348,12 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
hdl = d->getHandle();
if (checkDevice(hdl))
return hdl;
else
// No warning here, since the user hasn't expressly requested anything.
hdl = 0;
}
}
}
}

return reslt;
return 0;
}

MidiDriver *MidiDriver::createMidi(MidiDriver::DeviceHandle handle) {
Expand Down

0 comments on commit bdad493

Please sign in to comment.