Skip to content

Commit cb510f8

Browse files
committed
refactoring/remove unused
1 parent eb84d43 commit cb510f8

File tree

8 files changed

+1
-60
lines changed

8 files changed

+1
-60
lines changed
-68.6 KB
Binary file not shown.

src/commonMain/kotlin/spp.protocol/artifact/method/MethodType.kt

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/jvmMain/kotlin/spp/protocol/SourceMarkerServices.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ object SourceMarkerServices {
2424
var logCountIndicator: LogCountIndicatorService? = null
2525
}
2626

27-
object Status {
28-
const val MARKER_CONNECTED = "spp.status.marker-connected"
29-
}
30-
3127
object Utilize {
3228
const val LIVE_SERVICE = "spp.service.live-service"
3329
const val LIVE_INSTRUMENT = "spp.service.live-instrument"

src/jvmMain/kotlin/spp/protocol/platform/PlatformAddress.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ enum class PlatformAddress(val address: String) {
2222
LIVE_SPAN_APPLIED("spp.platform.status.live-span-applied"),
2323
LIVE_SPANS("spp.platform.status.live-spans"),
2424

25-
//MARKER_CONNECTED("spp.status.marker-connected"),
25+
MARKER_CONNECTED("spp.status.marker-connected"),
2626
MARKER_DISCONNECTED("spp.platform.status.marker-disconnected"),
2727
GENERATE_PROBE("spp.platform.generate-probe");
2828
}

src/jvmMain/kotlin/spp/protocol/platform/error/EventBusUtil.kt

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/jvmMain/kotlin/spp/protocol/probe/command/LiveInstrumentCommand.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ data class LiveInstrumentCommand @ConstructorProperties("commandType", "context"
1010
var context: LiveInstrumentContext
1111
) : Serializable {
1212

13-
data class Response(
14-
var isSuccess: Boolean,
15-
var fault: String? = null,
16-
var timestamp: Long,
17-
var context: LiveInstrumentContext
18-
) : Serializable
19-
2013
enum class CommandType {
2114
ADD_LIVE_INSTRUMENT,
2215
REMOVE_LIVE_INSTRUMENT

src/jvmMain/kotlin/spp/protocol/probe/command/LiveInstrumentContext.kt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import io.vertx.core.json.Json
66
import spp.protocol.instrument.LiveInstrument
77
import spp.protocol.instrument.LiveSourceLocation
88
import java.io.Serializable
9-
import java.util.stream.Collectors
109

1110
//todo: treat this as a regular data class
1211
@JsonIgnoreProperties(ignoreUnknown = true)
@@ -34,15 +33,7 @@ data class LiveInstrumentContext(
3433
return this
3534
}
3635

37-
fun <T> getLiveInstrumentsCast(clazz: Class<T>): List<T> {
38-
return instruments.stream().map { Json.decodeValue(it, clazz) }.collect(Collectors.toList())
39-
}
40-
4136
fun addLocation(location: LiveSourceLocation) {
4237
locations.add(Json.encode(location))
4338
}
44-
45-
fun <T> getLocationsCast(clazz: Class<T>): List<T> {
46-
return locations.stream().map { Json.decodeValue(it, clazz) }.collect(Collectors.toList())
47-
}
4839
}

src/jvmMain/kotlin/spp/protocol/service/logging/LogCountIndicatorService.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,4 @@ interface LogCountIndicatorService {
2727
step: DurationStep,
2828
handler: Handler<AsyncResult<JsonObject>>
2929
)
30-
31-
fun getLogCountSummary(handler: Handler<AsyncResult<LogCountSummary>>)
3230
}

0 commit comments

Comments
 (0)