Skip to content

Commit e87d3b3

Browse files
committed
refactor: remove useless code in KavaRef
1 parent 4ab1546 commit e87d3b3

File tree

1 file changed

+0
-37
lines changed
  • kavaref-core/src/main/kotlin/com/highcapable/kavaref

1 file changed

+0
-37
lines changed

kavaref-core/src/main/kotlin/com/highcapable/kavaref/KavaRef.kt

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,6 @@ class KavaRef private constructor() {
7575
@JvmName("resolveClass")
7676
fun <T : Any> Class<T>.resolve() = MemberScope(createConfiguration())
7777

78-
/**
79-
* Create a [MemberScope] instance to start a new reflection.
80-
*
81-
* This function has been deprecated due to naming pollution, use [asResolver] instead.
82-
* @return [MemberScope]<[T]>
83-
*/
84-
@Deprecated(message = "Use asResolver() instead.", replaceWith = ReplaceWith("this.asResolver()"))
85-
fun <T : Any> T.resolve() = asResolver()
86-
8778
/**
8879
* Create a [MemberScope] instance to start a new reflection.
8980
* @see KClass.resolve
@@ -110,54 +101,26 @@ class KavaRef private constructor() {
110101
@JvmSynthetic
111102
fun MemberScope<*>.asResolver(): MemberScope<*> = error(EXCEPTION_MESSAGE)
112103

113-
/**
114-
* This is a fake function call chains to avoid internal calls to themselves.
115-
*/
116-
@Deprecated(message = DEPRECATED_MESSAGE, level = DeprecationLevel.ERROR)
117-
@JvmSynthetic
118-
fun MemberScope<*>.resolve(): MemberScope<*> = error(EXCEPTION_MESSAGE)
119-
120104
/**
121105
* This is a fake function call chains to avoid internal calls to themselves.
122106
*/
123107
@Deprecated(message = DEPRECATED_MESSAGE, level = DeprecationLevel.ERROR)
124108
@JvmSynthetic
125109
fun MemberCondition<*, *, *>.asResolver(): MemberCondition<*, *, *> = error(EXCEPTION_MESSAGE)
126110

127-
/**
128-
* This is a fake function call chains to avoid internal calls to themselves.
129-
*/
130-
@Deprecated(message = DEPRECATED_MESSAGE, level = DeprecationLevel.ERROR)
131-
@JvmSynthetic
132-
fun MemberCondition<*, *, *>.resolve(): MemberCondition<*, *, *> = error(EXCEPTION_MESSAGE)
133-
134111
/**
135112
* This is a fake function call chains to avoid internal calls to themselves.
136113
*/
137114
@Deprecated(message = DEPRECATED_MESSAGE, level = DeprecationLevel.ERROR)
138115
@JvmSynthetic
139116
fun MemberResolver<*, *>.asResolver(): MemberResolver<*, *> = error(EXCEPTION_MESSAGE)
140117

141-
/**
142-
* This is a fake function call chains to avoid internal calls to themselves.
143-
*/
144-
@Deprecated(message = DEPRECATED_MESSAGE, level = DeprecationLevel.ERROR)
145-
@JvmSynthetic
146-
fun MemberResolver<*, *>.resolve(): MemberResolver<*, *> = error(EXCEPTION_MESSAGE)
147-
148118
/**
149119
* This is a fake function call chains to avoid internal calls to themselves.
150120
*/
151121
@Deprecated(message = DEPRECATED_MESSAGE, level = DeprecationLevel.ERROR)
152122
@JvmSynthetic
153123
fun List<MemberResolver<*, *>>.asResolver(): List<MemberResolver<*, *>> = error(EXCEPTION_MESSAGE)
154-
155-
/**
156-
* This is a fake function call chains to avoid internal calls to themselves.
157-
*/
158-
@Deprecated(message = DEPRECATED_MESSAGE, level = DeprecationLevel.ERROR)
159-
@JvmSynthetic
160-
fun List<MemberResolver<*, *>>.resolve(): List<MemberResolver<*, *>> = error(EXCEPTION_MESSAGE)
161124
}
162125

163126
/**

0 commit comments

Comments
 (0)