Skip to content

Commit 54eb041

Browse files
stainless-botStainless Bot
authored andcommitted
chore(internal): delete unused function
chore: unknown commit message
1 parent 44ab47a commit 54eb041

File tree

1 file changed

+0
-14
lines changed
  • openai-java-core/src/main/kotlin/com/openai/core

1 file changed

+0
-14
lines changed

openai-java-core/src/main/kotlin/com/openai/core/Utils.kt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,4 @@ internal fun <K, V> ListMultimap<K, V>.toUnmodifiable(): ListMultimap<K, V> {
3939
return Multimaps.unmodifiableListMultimap(this)
4040
}
4141

42-
@JvmSynthetic
43-
internal fun ListMultimap<String, String>.getRequiredHeader(header: String): String {
44-
val value =
45-
entries()
46-
.stream()
47-
.filter { entry -> entry.key.equals(header, ignoreCase = true) }
48-
.map { entry -> entry.value }
49-
.findFirst()
50-
if (!value.isPresent) {
51-
throw OpenAIInvalidDataException("Could not find $header header")
52-
}
53-
return value.get()
54-
}
55-
5642
internal interface Enum

0 commit comments

Comments
 (0)