Removed obsolete try/catch

This commit is contained in:
Uwe Seimet 2021-09-11 19:42:16 +02:00
parent eabd041b9f
commit 39ca12d8b1

View File

@ -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;
} }