diff options
author | senator <muldjordlars@gmail.com> | 2014-11-05 22:42:36 +0100 |
---|---|---|
committer | senator <muldjordlars@gmail.com> | 2014-11-05 22:42:36 +0100 |
commit | d57b48bb2029040bc38d1adefd2136e5fd334760 (patch) | |
tree | cfc8d8a24cb53354932d821f340a5930b48deb40 /src/instrumentparser.cc | |
parent | 9907626a2ee3a5a0ed08ad79dec7a7071939df23 (diff) |
Removed all unused variables from classes and also removed a couple of debug printfsmetadata_v1
Diffstat (limited to 'src/instrumentparser.cc')
-rw-r--r-- | src/instrumentparser.cc | 5 |
1 files changed, 1 insertions, 4 deletions
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<Sample *>::iterator i = instrument.samplelist.begin(); while(i != instrument.samplelist.end()) { - if((*i)->name == attr["name"]) { + if((*i)->id == attr["id"]) { sample = *i; break; } |