diff --git a/oscar/SleepLib/loader_plugins/prs1_loader.cpp b/oscar/SleepLib/loader_plugins/prs1_loader.cpp index a5fc0369..4fe73689 100644 --- a/oscar/SleepLib/loader_plugins/prs1_loader.cpp +++ b/oscar/SleepLib/loader_plugins/prs1_loader.cpp @@ -44,8 +44,6 @@ const int PRS1_HTYPE_INTERVAL=1; // that change loader behaviour or modify channels. //******************************************************************************************** -QHash ModelMap; - // CRC-16/KERMIT, polynomial: 0x11021, bit reverse algorithm // Table generated by crcmod (crc-kermit) @@ -445,54 +443,6 @@ void parseModel(MachineInfo & info, const QString & modelnum) { info.modelnumber = modelnum; - QString modelstr; - bool fnd = false; - for (int i=0; i & props) @@ -589,21 +541,12 @@ bool PRS1Loader::PeekProperties(MachineInfo & info, const QString & filename, Ma mach->properties[key] = props[key]; }; - // TODO: replace the below logic with PRS1ModelInfo table-driven logic - if (!modelnum.isEmpty()) { parseModel(info, modelnum); } else { qWarning() << "missing model number" << filename; } - // TODO: Replace this with PRS1ModelInfo. - if (ptype > 0) { - if (ModelMap.contains(ptype)) { - info.model = ModelMap[ptype]; - } - } - return true; } @@ -6403,23 +6346,6 @@ bool PRS1DataChunk::ExtractStoredCrc(int size) } -void InitModelMap() -{ - ModelMap[0x34] = QObject::tr("RemStar Pro with C-Flex+"); // 450/460P - ModelMap[0x35] = QObject::tr("RemStar Auto with A-Flex"); // 550/560P - ModelMap[0x36] = QObject::tr("RemStar BiPAP Pro with Bi-Flex"); - ModelMap[0x37] = QObject::tr("RemStar BiPAP Auto with Bi-Flex"); - ModelMap[0x38] = QObject::tr("RemStar Plus"); // 150/250P/260P - ModelMap[0x41] = QObject::tr("BiPAP autoSV Advanced"); - ModelMap[0x4a] = QObject::tr("BiPAP autoSV Advanced 60 Series"); - ModelMap[0x4E] = QObject::tr("BiPAP AVAPS"); - ModelMap[0x58] = QObject::tr("CPAP"); // guessing - ModelMap[0x59] = QObject::tr("CPAP Pro"); // guessing - ModelMap[0x5A] = QObject::tr("Auto CPAP"); - ModelMap[0x5B] = QObject::tr("BiPAP Pro"); // guessing - ModelMap[0x5C] = QObject::tr("Auto BiPAP"); -} - bool initialized = false; using namespace schema; @@ -6667,7 +6593,6 @@ void PRS1Loader::Register() qDebug() << "Registering PRS1Loader"; RegisterLoader(new PRS1Loader()); - InitModelMap(); initialized = true; }