diff --git a/app/src/main/java/com/vanced/manager/ui/events/Event.kt b/app/src/main/java/com/vanced/manager/ui/events/Event.kt deleted file mode 100644 index ccd90140..00000000 --- a/app/src/main/java/com/vanced/manager/ui/events/Event.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.vanced.manager.ui.events - -open class Event(private val content: T) { - - private var hasBeenHandled = false - - /** - * Returns the content and prevents its use again. - */ - fun getContentIfNotHandled(): T? { - return if (hasBeenHandled) { - null - } else { - hasBeenHandled = true - content - } - } - - /** - * Returns the content, even if it's already been handled. - */ - fun peekContent(): T = content -}