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:
parent
65955b44d9
commit
c31ba658bf
1 changed files with 0 additions and 1 deletions
|
|
@ -182,7 +182,6 @@ namespace spot
|
||||||
int
|
int
|
||||||
option_map::operator[](const char* option) const
|
option_map::operator[](const char* option) const
|
||||||
{
|
{
|
||||||
unused_.erase(option);
|
|
||||||
return get(option);
|
return get(option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue