From 33d059d002da3273dbbcc4980de9d1fca264a693 Mon Sep 17 00:00:00 2001 From: X1nto Date: Mon, 19 Apr 2021 19:57:51 +0400 Subject: [PATCH] removed unused event file --- .../com/vanced/manager/ui/events/Event.kt | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 app/src/main/java/com/vanced/manager/ui/events/Event.kt 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 -}