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