Skip to content

Commit

Permalink
refactoring/remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
BFergerson committed Jan 26, 2022
1 parent eb84d43 commit cb510f8
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 60 deletions.
Binary file removed .ext/vertx-service-discovery-4.0.3-SNAPSHOT.jar
Binary file not shown.
11 changes: 0 additions & 11 deletions src/commonMain/kotlin/spp.protocol/artifact/method/MethodType.kt

This file was deleted.

4 changes: 0 additions & 4 deletions src/jvmMain/kotlin/spp/protocol/SourceMarkerServices.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ object SourceMarkerServices {
var logCountIndicator: LogCountIndicatorService? = null
}

object Status {
const val MARKER_CONNECTED = "spp.status.marker-connected"
}

object Utilize {
const val LIVE_SERVICE = "spp.service.live-service"
const val LIVE_INSTRUMENT = "spp.service.live-instrument"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ enum class PlatformAddress(val address: String) {
LIVE_SPAN_APPLIED("spp.platform.status.live-span-applied"),
LIVE_SPANS("spp.platform.status.live-spans"),

//MARKER_CONNECTED("spp.status.marker-connected"),
MARKER_CONNECTED("spp.status.marker-connected"),
MARKER_DISCONNECTED("spp.platform.status.marker-disconnected"),
GENERATE_PROBE("spp.platform.generate-probe");
}
26 changes: 0 additions & 26 deletions src/jvmMain/kotlin/spp/protocol/platform/error/EventBusUtil.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ data class LiveInstrumentCommand @ConstructorProperties("commandType", "context"
var context: LiveInstrumentContext
) : Serializable {

data class Response(
var isSuccess: Boolean,
var fault: String? = null,
var timestamp: Long,
var context: LiveInstrumentContext
) : Serializable

enum class CommandType {
ADD_LIVE_INSTRUMENT,
REMOVE_LIVE_INSTRUMENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import io.vertx.core.json.Json
import spp.protocol.instrument.LiveInstrument
import spp.protocol.instrument.LiveSourceLocation
import java.io.Serializable
import java.util.stream.Collectors

//todo: treat this as a regular data class
@JsonIgnoreProperties(ignoreUnknown = true)
Expand Down Expand Up @@ -34,15 +33,7 @@ data class LiveInstrumentContext(
return this
}

fun <T> getLiveInstrumentsCast(clazz: Class<T>): List<T> {
return instruments.stream().map { Json.decodeValue(it, clazz) }.collect(Collectors.toList())
}

fun addLocation(location: LiveSourceLocation) {
locations.add(Json.encode(location))
}

fun <T> getLocationsCast(clazz: Class<T>): List<T> {
return locations.stream().map { Json.decodeValue(it, clazz) }.collect(Collectors.toList())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,4 @@ interface LogCountIndicatorService {
step: DurationStep,
handler: Handler<AsyncResult<JsonObject>>
)

fun getLogCountSummary(handler: Handler<AsyncResult<LogCountSummary>>)
}

0 comments on commit cb510f8

Please sign in to comment.