From 36ce921b8e7de9259dbb8ce5ede302920c5a3c73 Mon Sep 17 00:00:00 2001 From: krrong Date: Thu, 19 Oct 2023 11:17:21 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=82=AC=EC=9A=A9=ED=95=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8A=94=20=ED=8C=8C=EC=9D=BC=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presentation/common/dialog/DialogType.kt | 5 ----- .../onadventure/DistinctChildLiveData.kt | 20 ------------------- 2 files changed, 25 deletions(-) delete mode 100644 android/app/src/main/java/com/now/naaga/presentation/common/dialog/DialogType.kt delete mode 100644 android/app/src/main/java/com/now/naaga/presentation/onadventure/DistinctChildLiveData.kt diff --git a/android/app/src/main/java/com/now/naaga/presentation/common/dialog/DialogType.kt b/android/app/src/main/java/com/now/naaga/presentation/common/dialog/DialogType.kt deleted file mode 100644 index 5d5bdeb18..000000000 --- a/android/app/src/main/java/com/now/naaga/presentation/common/dialog/DialogType.kt +++ /dev/null @@ -1,5 +0,0 @@ -package com.now.naaga.presentation.common.dialog - -enum class DialogType { - LOCATION, CAMERA -} diff --git a/android/app/src/main/java/com/now/naaga/presentation/onadventure/DistinctChildLiveData.kt b/android/app/src/main/java/com/now/naaga/presentation/onadventure/DistinctChildLiveData.kt deleted file mode 100644 index 18fc7c28d..000000000 --- a/android/app/src/main/java/com/now/naaga/presentation/onadventure/DistinctChildLiveData.kt +++ /dev/null @@ -1,20 +0,0 @@ -package com.now.naaga.presentation.onadventure - -import androidx.lifecycle.LifecycleOwner -import androidx.lifecycle.LiveData -import androidx.lifecycle.Observer -import java.util.concurrent.atomic.AtomicReference - -class DistinctChildLiveData(private val parentLiveData: LiveData) : LiveData() { - private val oldData = AtomicReference() - - override fun observe(owner: LifecycleOwner, observer: Observer) { - parentLiveData.observe(owner) { newData: T -> - if (oldData.get() != newData) { - oldData.set(newData) - value = newData - } - super.observe(owner, observer) - } - } -}