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