Skip to content

Commit 97cd0c8

Browse files
committed
Remove unused cache
1 parent 234d824 commit 97cd0c8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/kotlin/com/fasterxml/jackson/module/kotlin/ReflectionCache.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ internal class ReflectionCache(reflectionCacheSize: Int) {
4040
private val javaExecutableToValueCreator = LRUMap<Executable, ValueCreator<*>>(reflectionCacheSize, reflectionCacheSize)
4141
private val javaConstructorIsCreatorAnnotated = LRUMap<AnnotatedConstructor, Boolean>(reflectionCacheSize, reflectionCacheSize)
4242
private val javaMemberIsRequired = LRUMap<AnnotatedMember, BooleanTriState?>(reflectionCacheSize, reflectionCacheSize)
43-
private val kotlinGeneratedMethod = LRUMap<AnnotatedMethod, Boolean>(reflectionCacheSize, reflectionCacheSize)
44-
4543

4644
fun kotlinFromJava(key: Class<Any>): KClass<Any> = javaClassToKotlin.get(key)
4745
?: key.kotlin.let { javaClassToKotlin.putIfAbsent(key, it) ?: it }
@@ -89,7 +87,4 @@ internal class ReflectionCache(reflectionCacheSize: Int) {
8987

9088
fun javaMemberIsRequired(key: AnnotatedMember, calc: (AnnotatedMember) -> Boolean?): Boolean? = javaMemberIsRequired.get(key)?.value
9189
?: calc(key).let { javaMemberIsRequired.putIfAbsent(key, BooleanTriState.fromBoolean(it))?.value ?: it }
92-
93-
fun isKotlinGeneratedMethod(key: AnnotatedMethod, calc: (AnnotatedMethod) -> Boolean): Boolean = kotlinGeneratedMethod.get(key)
94-
?: calc(key).let { kotlinGeneratedMethod.putIfAbsent(key, it) ?: it }
9590
}

0 commit comments

Comments
 (0)