@@ -10,7 +10,6 @@ import org.jetbrains.kotlin.ir.declarations.IrSimpleFunction
10
10
import org.jetbrains.kotlin.ir.symbols.IrClassSymbol
11
11
import org.jetbrains.kotlin.ir.symbols.IrPropertySymbol
12
12
import org.jetbrains.kotlin.ir.symbols.IrSimpleFunctionSymbol
13
- import org.jetbrains.kotlin.ir.types.classOrNull
14
13
import org.jetbrains.kotlin.ir.types.makeNullable
15
14
import org.jetbrains.kotlin.ir.util.functions
16
15
import org.jetbrains.kotlin.ir.util.isVararg
@@ -45,18 +44,6 @@ internal class RpcIrContext(
45
44
getIrClassSymbol(" kotlin.reflect" , " KType" )
46
45
}
47
46
48
- val lazy by lazy {
49
- getIrClassSymbol(" kotlin" , " Lazy" )
50
- }
51
-
52
- val function0 by lazy {
53
- getIrClassSymbol(" kotlin" , " Function0" )
54
- }
55
-
56
- val function1 by lazy {
57
- getIrClassSymbol(" kotlin" , " Function1" )
58
- }
59
-
60
47
val suspendFunction0 by lazy {
61
48
getIrClassSymbol(" kotlin.coroutines" , " SuspendFunction0" )
62
49
}
@@ -77,10 +64,6 @@ internal class RpcIrContext(
77
64
getIrClassSymbol(" kotlinx.coroutines.flow" , " StateFlow" )
78
65
}
79
66
80
- val kProperty1 by lazy {
81
- getIrClassSymbol(" kotlin.reflect" , " KProperty1" )
82
- }
83
-
84
67
val pair by lazy {
85
68
getIrClassSymbol(" kotlin" , " Pair" )
86
69
}
@@ -97,10 +80,6 @@ internal class RpcIrContext(
97
80
getRpcIrClassSymbol(" WithServiceDescriptor" , " internal" )
98
81
}
99
82
100
- val rpcEagerFieldAnnotation by lazy {
101
- getRpcIrClassSymbol(" RpcEagerField" )
102
- }
103
-
104
83
val rpcServiceDescriptor by lazy {
105
84
getRpcIrClassSymbol(" RpcServiceDescriptor" , " descriptor" )
106
85
}
@@ -121,10 +100,6 @@ internal class RpcIrContext(
121
100
rpcInvokator.subClass(" Method" )
122
101
}
123
102
124
- val rpcInvokatorField by lazy {
125
- rpcInvokator.subClass(" Field" )
126
- }
127
-
128
103
val rpcParameter by lazy {
129
104
getRpcIrClassSymbol(" RpcParameter" , " descriptor" )
130
105
}
@@ -133,10 +108,6 @@ internal class RpcIrContext(
133
108
getRpcIrClassSymbol(" RpcDeferredField" , " internal" )
134
109
}
135
110
136
- val fieldDataObject by lazy {
137
- getRpcIrClassSymbol(" FieldDataObject" , " internal" )
138
- }
139
-
140
111
val rpcMethodClass by lazy {
141
112
getRpcIrClassSymbol(" RpcMethodClass" , " internal" )
142
113
}
@@ -156,18 +127,6 @@ internal class RpcIrContext(
156
127
val functions = Functions ()
157
128
158
129
inner class Functions {
159
- val registerPlainFlowField by lazy {
160
- namedFunction(" kotlinx.rpc" , " registerPlainFlowField" )
161
- }
162
-
163
- val registerSharedFlowField by lazy {
164
- namedFunction(" kotlinx.rpc" , " registerSharedFlowField" )
165
- }
166
-
167
- val registerStateFlowField by lazy {
168
- namedFunction(" kotlinx.rpc" , " registerStateFlowField" )
169
- }
170
-
171
130
val dataCast by lazy {
172
131
namedFunction(" kotlinx.rpc.internal" , " rpcInternalDataCast" )
173
132
}
@@ -200,30 +159,6 @@ internal class RpcIrContext(
200
159
namedFunction(" kotlinx.rpc.internal" , " scopedClientCall" )
201
160
}
202
161
203
- val lazy by lazy {
204
- namedFunction(" kotlin" , " lazy" ) {
205
- vsApi {
206
- it.owner.valueParametersVS().size == 1
207
- }
208
- }
209
- }
210
-
211
- val lazyGetValue by lazy {
212
- namedFunction(" kotlin" , " getValue" ) {
213
- vsApi {
214
- it.owner.extensionReceiverParameterVS?.type?.classOrNull == this @RpcIrContext.lazy
215
- }
216
- }
217
- }
218
-
219
- val listOf by lazy {
220
- namedFunction(" kotlin.collections" , " listOf" ) {
221
- vsApi {
222
- it.owner.valueParametersVS().singleOrNull()?.isVararg ? : false
223
- }
224
- }
225
- }
226
-
227
162
val emptyList by lazy {
228
163
namedFunction(" kotlin.collections" , " emptyList" )
229
164
}
0 commit comments