From 1a34c1c7e3f25d17fac0f83640ea0e8cbef267e5 Mon Sep 17 00:00:00 2001 From: Zhanty Date: Mon, 12 Aug 2019 19:52:27 +0800 Subject: [PATCH] remove bad func --- .../src/main/java/com/android/base/data/Resource.kt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib_base/src/main/java/com/android/base/data/Resource.kt b/lib_base/src/main/java/com/android/base/data/Resource.kt index 91f1974..cbdc056 100644 --- a/lib_base/src/main/java/com/android/base/data/Resource.kt +++ b/lib_base/src/main/java/com/android/base/data/Resource.kt @@ -39,13 +39,4 @@ inline fun Resource.onSuccessWithData(onSuccess: (data: T) -> Unit): Reso onSuccess(t) } return this -} - -val Resource?.isFailed - get() = this != null && this.isError - -val Resource?.isSucceeded - get() = this != null && this.isSuccess - -val Resource?.inLoading - get() = this != null && this.isLoading \ No newline at end of file +} \ No newline at end of file