Remove deprecate APIs

This commit is contained in:
topjohnwu 2020-01-13 04:00:35 +08:00
parent 84f1e78660
commit ba1a2fbce4
2 changed files with 1 additions and 7 deletions

View File

@ -8,6 +8,4 @@ interface Navigator {
//TODO Elevate Fragment to MagiskFragment<*,*> once everything is on board with it //TODO Elevate Fragment to MagiskFragment<*,*> once everything is on board with it
val baseFragments: List<KClass<out Fragment>> val baseFragments: List<KClass<out Fragment>>
fun navigateTo(event: MagiskNavigationEvent)
} }

View File

@ -16,7 +16,6 @@ import com.topjohnwu.magisk.extensions.snackbar
import com.topjohnwu.magisk.extensions.startAnimations import com.topjohnwu.magisk.extensions.startAnimations
import com.topjohnwu.magisk.model.events.SnackbarEvent import com.topjohnwu.magisk.model.events.SnackbarEvent
import com.topjohnwu.magisk.model.events.ViewEvent import com.topjohnwu.magisk.model.events.ViewEvent
import com.topjohnwu.magisk.model.navigation.MagiskNavigationEvent
import com.topjohnwu.magisk.model.navigation.Navigator import com.topjohnwu.magisk.model.navigation.Navigator
import com.topjohnwu.magisk.ui.theme.Theme import com.topjohnwu.magisk.ui.theme.Theme
import kotlin.reflect.KClass import kotlin.reflect.KClass
@ -78,9 +77,6 @@ abstract class CompatActivity<ViewModel : BaseViewModel, Binding : ViewDataBindi
} }
} }
@Deprecated("The event is self handled.", level = DeprecationLevel.ERROR)
override fun navigateTo(event: MagiskNavigationEvent) = Unit
protected fun ViewEvent.dispatchOnSelf() = onEventDispatched(this) protected fun ViewEvent.dispatchOnSelf() = onEventDispatched(this)
} }