diff options
author | Max Horn | 2011-06-09 18:15:55 +0200 |
---|---|---|
committer | Max Horn | 2011-06-10 22:15:39 +0200 |
commit | bdad493f3f01768f5693cc379609c2c89d6b2200 (patch) | |
tree | 7a8ad2146489cc9bb1e6e5b73e8b1207cfb1e017 | |
parent | a1f12c25cae2dbcc8a904d628827dd4789b738cc (diff) | |
download | scummvm-rg350-bdad493f3f01768f5693cc379609c2c89d6b2200.tar.gz scummvm-rg350-bdad493f3f01768f5693cc379609c2c89d6b2200.tar.bz2 scummvm-rg350-bdad493f3f01768f5693cc379609c2c89d6b2200.zip |
AUDIO: Remove dead code
-rw-r--r-- | audio/mididrv.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/audio/mididrv.cpp b/audio/mididrv.cpp index 80981eeccb..0ca70b24f8 100644 --- a/audio/mididrv.cpp +++ b/audio/mididrv.cpp @@ -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(); @@ -268,7 +266,6 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) { GUI::MessageDialog dialog(warningMsg); dialog.runModal(); } - hdl = 0; } } @@ -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; } } } @@ -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; } } } @@ -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) { |