Skip to content

Commit 361294d

Browse files
committed
refactor: replace SET_LIVE_INSTRUMENTS command with ADD_LIVE_INSTRUMENTS
1 parent c53077a commit 361294d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/main/kotlin/spp/protocol/instrument/command/CommandType.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ package spp.protocol.instrument.command
1818

1919
enum class CommandType {
2020
ADD_LIVE_INSTRUMENT,
21-
REMOVE_LIVE_INSTRUMENT,
22-
SET_INITIAL_INSTRUMENTS,
21+
REMOVE_LIVE_INSTRUMENT
2322
}

src/main/kotlin/spp/protocol/instrument/command/LiveInstrumentCommand.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ data class LiveInstrumentCommand(
4242
}
4343

4444
fun isDispatchable(): Boolean {
45-
if (commandType == CommandType.SET_INITIAL_INSTRUMENTS) return true
4645
return instruments.isNotEmpty() || locations.isNotEmpty()
4746
}
4847

0 commit comments

Comments
 (0)