From 22d745f50f187a124f39559860a103dd46276da2 Mon Sep 17 00:00:00 2001 From: Johan Blomgren Date: Tue, 29 Oct 2024 08:18:58 +0100 Subject: [PATCH] Fjerner AbstractPingableRestClient som aldri ble tatt i bruk --- .../http/client/AbstractPingableRestClient.kt | 15 --------------- .../tilleggsstonader/libs/http/client/Pingable.kt | 5 ----- 2 files changed, 20 deletions(-) delete mode 100644 http-client/main/no/nav/tilleggsstonader/libs/http/client/AbstractPingableRestClient.kt delete mode 100644 http-client/main/no/nav/tilleggsstonader/libs/http/client/Pingable.kt diff --git a/http-client/main/no/nav/tilleggsstonader/libs/http/client/AbstractPingableRestClient.kt b/http-client/main/no/nav/tilleggsstonader/libs/http/client/AbstractPingableRestClient.kt deleted file mode 100644 index f42fce0..0000000 --- a/http-client/main/no/nav/tilleggsstonader/libs/http/client/AbstractPingableRestClient.kt +++ /dev/null @@ -1,15 +0,0 @@ -package no.nav.tilleggsstonader.libs.http.client - -import org.springframework.web.client.RestTemplate - -abstract class AbstractPingableRestClient(restTemplate: RestTemplate) : AbstractRestClient(restTemplate), Pingable { - abstract val pingUri: String - - override fun ping() { - getForEntity(pingUri) - } - - override fun toString(): String { - return this::class.simpleName + "[restTemplate=" + restTemplate + "]" - } -} diff --git a/http-client/main/no/nav/tilleggsstonader/libs/http/client/Pingable.kt b/http-client/main/no/nav/tilleggsstonader/libs/http/client/Pingable.kt deleted file mode 100644 index c25e4f2..0000000 --- a/http-client/main/no/nav/tilleggsstonader/libs/http/client/Pingable.kt +++ /dev/null @@ -1,5 +0,0 @@ -package no.nav.tilleggsstonader.libs.http.client - -interface Pingable { - fun ping() -}