[LL API] remove unused executeOrReturnDefaultValueOnPCE
This commit is contained in:
-7
@@ -27,13 +27,6 @@ import java.util.concurrent.locks.Lock
|
|||||||
import kotlin.reflect.KProperty
|
import kotlin.reflect.KProperty
|
||||||
|
|
||||||
|
|
||||||
internal inline fun <T> executeOrReturnDefaultValueOnPCE(defaultValue: T, action: () -> T): T =
|
|
||||||
try {
|
|
||||||
action()
|
|
||||||
} catch (e: ProcessCanceledException) {
|
|
||||||
defaultValue
|
|
||||||
}
|
|
||||||
|
|
||||||
internal inline fun <T> executeWithoutPCE(crossinline action: () -> T): T {
|
internal inline fun <T> executeWithoutPCE(crossinline action: () -> T): T {
|
||||||
var result: T? = null
|
var result: T? = null
|
||||||
ProgressManager.getInstance().executeNonCancelableSection { result = action() }
|
ProgressManager.getInstance().executeNonCancelableSection { result = action() }
|
||||||
|
|||||||
Reference in New Issue
Block a user