From d57b48bb2029040bc38d1adefd2136e5fd334760 Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 5 Nov 2014 22:42:36 +0100 Subject: Removed all unused variables from classes and also removed a couple of debug printfs --- src/instrumentparser.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/instrumentparser.cc') diff --git a/src/instrumentparser.cc b/src/instrumentparser.cc index 8d097e9..c26ffe5 100644 --- a/src/instrumentparser.cc +++ b/src/instrumentparser.cc @@ -55,9 +55,6 @@ void InstrumentParser::startTag(std::string name, if(attr.find("id") != attr.end()) instrument._id = attr["id"]; - if(attr.find("description") != attr.end()) - instrument._description = attr["description"]; - if(attr.find("version") != attr.end()) { try { instrument.version = VersionStr(attr["version"]); @@ -149,7 +146,7 @@ void InstrumentParser::startTag(std::string name, Sample *sample = NULL; std::vector::iterator i = instrument.samplelist.begin(); while(i != instrument.samplelist.end()) { - if((*i)->name == attr["name"]) { + if((*i)->id == attr["id"]) { sample = *i; break; } -- cgit v1.2.3