g13d: Remove an unused block of code

We don't actually do anything with an add operation in
G13_Device::_init_commands, so fix up the if block.
This commit is contained in:
June Tate-Gans 2021-04-25 14:36:07 -05:00
parent cb916e4d24
commit 366e3c0f24

View File

@ -583,10 +583,10 @@ void G13_Device::_init_commands() {
std::string operation, zonename; std::string operation, zonename;
advance_ws(remainder, operation); advance_ws(remainder, operation);
advance_ws(remainder, zonename); advance_ws(remainder, zonename);
if (operation == "add") {
G13_StickZone *zone = _stick.zone(zonename, true); if (operation != "add") {
} else {
G13_StickZone *zone = _stick.zone(zonename); G13_StickZone *zone = _stick.zone(zonename);
if (!zone) { if (!zone) {
throw G13_CommandException("unknown stick zone"); throw G13_CommandException("unknown stick zone");
} }