mirror of
https://github.com/jtgans/g13gui.git
synced 2025-06-20 08:23:50 -04:00
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:
parent
cb916e4d24
commit
366e3c0f24
@ -583,10 +583,10 @@ void G13_Device::_init_commands() {
|
||||
std::string operation, zonename;
|
||||
advance_ws(remainder, operation);
|
||||
advance_ws(remainder, zonename);
|
||||
if (operation == "add") {
|
||||
G13_StickZone *zone = _stick.zone(zonename, true);
|
||||
} else {
|
||||
|
||||
if (operation != "add") {
|
||||
G13_StickZone *zone = _stick.zone(zonename);
|
||||
|
||||
if (!zone) {
|
||||
throw G13_CommandException("unknown stick zone");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user