mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-21 08:29:59 +00:00
Removed obsolete try/catch
This commit is contained in:
parent
eabd041b9f
commit
39ca12d8b1
@ -92,7 +92,6 @@ Device *DeviceFactory::CreateDevice(PbDeviceType type, const string& filename, c
|
||||
}
|
||||
|
||||
Device *device = NULL;
|
||||
try {
|
||||
switch (type) {
|
||||
case SAHD:
|
||||
device = new SASIHD();
|
||||
@ -168,11 +167,6 @@ Device *DeviceFactory::CreateDevice(PbDeviceType type, const string& filename, c
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch(const illegal_argument_exception& e) {
|
||||
// There was an internal problem with setting up the device data
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return device;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user