optionmap: remove superfluous code

This was noticed while looking at a false-positive in the report for
PVS-Studio, in #192.

* spot/misc/optionmap.cc: Do not remove the option from unused_ twice..
This commit is contained in:
Alexandre Duret-Lutz 2016-10-28 23:02:25 +02:00
parent 65955b44d9
commit c31ba658bf

View file

@ -182,7 +182,6 @@ namespace spot
int
option_map::operator[](const char* option) const
{
unused_.erase(option);
return get(option);
}