From 6e97a365e59ad91d0a5d820a30d79129a3f25a17 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 12 Aug 2024 23:40:30 +0600 Subject: [PATCH] remove redundant new functions --- src/androidMain/kotlin/ResultChecker.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/androidMain/kotlin/ResultChecker.kt b/src/androidMain/kotlin/ResultChecker.kt index eb57e3c..961becd 100644 --- a/src/androidMain/kotlin/ResultChecker.kt +++ b/src/androidMain/kotlin/ResultChecker.kt @@ -3,12 +3,6 @@ package dev.inmo.krontab import android.annotation.SuppressLint import androidx.work.ListenableWorker -@SuppressLint("RestrictedApi") -internal fun ListenableWorker.Result.isSuccess() = this is ListenableWorker.Result.Success - -@SuppressLint("RestrictedApi") -internal fun ListenableWorker.Result.isFailure() = this is ListenableWorker.Result.Failure - @SuppressLint("RestrictedApi") internal inline fun ListenableWorker.Result.checkResults( onFailure: () -> Unit,