Skip to content

Commit 1923038

Browse files
committed
chore: another round of polishing
1 parent 7924f36 commit 1923038

File tree

1 file changed

+1
-16
lines changed
  • common/src/main/kotlin/org/neo4j/connectors/kafka/configuration/helpers

1 file changed

+1
-16
lines changed

common/src/main/kotlin/org/neo4j/connectors/kafka/configuration/helpers/ConfigUtils.kt

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ class ConfigKeyBuilder private constructor(name: String, type: ConfigDef.Type) {
4040
var recommender: ConfigDef.Recommender? = null
4141
var internalConfig: Boolean
4242

43-
private constructor(group: String, name: String, type: ConfigDef.Type) : this(name, type) {
44-
this.group = group
45-
}
46-
4743
init {
4844
documentation = ""
4945
defaultValue = ConfigDef.NO_DEFAULT_VALUE
@@ -77,22 +73,11 @@ class ConfigKeyBuilder private constructor(name: String, type: ConfigDef.Type) {
7773

7874
companion object {
7975
fun of(
80-
group: String,
8176
name: String,
8277
type: ConfigDef.Type,
8378
init: ConfigKeyBuilder.() -> Unit
8479
): ConfigDef.ConfigKey {
85-
val builder = ConfigKeyBuilder(group, name, type)
86-
init(builder)
87-
return builder.build()
88-
}
89-
90-
fun of(
91-
group: String,
92-
type: ConfigDef.Type,
93-
init: ConfigKeyBuilder.() -> Unit
94-
): ConfigDef.ConfigKey {
95-
val builder = ConfigKeyBuilder(group, type)
80+
val builder = ConfigKeyBuilder(name, type)
9681
init(builder)
9782
return builder.build()
9883
}

0 commit comments

Comments
 (0)