Remove unnecessary function
authorLanius Trolling <lanius@laniustrolling.dev>
Sat, 27 Jan 2024 15:36:20 +0000 (10:36 -0500)
committerLanius Trolling <lanius@laniustrolling.dev>
Sat, 27 Jan 2024 15:36:20 +0000 (10:36 -0500)
src/mapMain/kotlin/info/mechyrdia/mapviewer/modal.kt

index e5424d43a1519dd8560d312aefb27e5777695697..b72984773a45dc63553f6992b615438b2c7de4b5 100644 (file)
@@ -43,17 +43,3 @@ suspend fun <T> showLoadingScreen(label: String = "Loading...", loader: suspend
                loader().also { showingBox.cancelAndJoin() }
        }
 }
-
-suspend fun showAlertScreen(alertHeader: String, alertBody: String, alertDismiss: String) {
-       showModalBox { dismiss ->
-               h1 { +alertHeader }
-               p {
-                       style = "max-height:50vh;overflow-y:auto"
-                       +alertBody
-               }
-               button {
-                       onClickFunction = { _ -> dismiss(Unit) }
-                       +alertDismiss
-               }
-       }
-}