Skip to content

Commit

Permalink
refactor(osv-client)!: Remove an unused constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.com>
  • Loading branch information
mnonnenmacher committed Aug 29, 2024
1 parent ae29ff7 commit 6636764
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions clients/osv/src/main/kotlin/OsvService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ interface OsvService {

val JSON = Json { namingStrategy = JsonNamingStrategy.SnakeCase }

/**
* Create a service instance for communicating with the given [server], optionally using a pre-built OkHttp
* [client].
*/
fun create(server: Server, client: OkHttpClient? = null): OsvService = create(server.url, client)

fun create(serverUrl: String? = null, client: OkHttpClient? = null): OsvService {
val converterFactory = JSON.asConverterFactory(contentType = "application/json".toMediaType())

Expand Down

0 comments on commit 6636764

Please sign in to comment.