Move DummyDelegate to :compiler:util

Deleted DummyDelegate from a pair of usages across the project, and
moved it to :compiler:util module to avoid further duplicates
This commit is contained in:
Iaroslav Postovalov
2023-09-12 22:56:57 +02:00
committed by Space Team
parent 2578bfefd5
commit fd2954a8d3
4 changed files with 6 additions and 14 deletions
@@ -0,0 +1,13 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.utils
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KProperty
class DummyDelegate<T>(val value: T) : ReadOnlyProperty<Any?, T> {
override fun getValue(thisRef: Any?, property: KProperty<*>): T = value
}