From 4ceefabd1de8667243e959f2608af02c90a6fa31 Mon Sep 17 00:00:00 2001 From: Matthew Nelson Date: Wed, 19 Jun 2024 03:27:26 -0400 Subject: [PATCH] Remove static ProcessException.Handler.THROW implementation --- library/process/api/process.api | 1 - .../io/matthewnelson/kmp/process/ProcessException.kt | 9 --------- 2 files changed, 10 deletions(-) diff --git a/library/process/api/process.api b/library/process/api/process.api index 73ff5d5..07496d8 100644 --- a/library/process/api/process.api +++ b/library/process/api/process.api @@ -164,7 +164,6 @@ public final class io/matthewnelson/kmp/process/ProcessException$Companion { public abstract interface class io/matthewnelson/kmp/process/ProcessException$Handler { public static final field Companion Lio/matthewnelson/kmp/process/ProcessException$Handler$Companion; public static final field IGNORE Lio/matthewnelson/kmp/process/ProcessException$Handler; - public static final field THROW Lio/matthewnelson/kmp/process/ProcessException$Handler; public abstract fun onException (Lio/matthewnelson/kmp/process/ProcessException;)V } diff --git a/library/process/src/commonMain/kotlin/io/matthewnelson/kmp/process/ProcessException.kt b/library/process/src/commonMain/kotlin/io/matthewnelson/kmp/process/ProcessException.kt index d0b0ea4..39fef2a 100644 --- a/library/process/src/commonMain/kotlin/io/matthewnelson/kmp/process/ProcessException.kt +++ b/library/process/src/commonMain/kotlin/io/matthewnelson/kmp/process/ProcessException.kt @@ -78,15 +78,6 @@ public class ProcessException private constructor( override fun onException(e: ProcessException) {} override fun toString(): String = "ProcessException.Handler.IGNORE" } - - /** - * Static instance that automatically throws the [ProcessException]. - * */ - @JvmField - public val THROW: Handler = object : Handler { - override fun onException(e: ProcessException) { throw e } - override fun toString(): String = "ProcessException.Handler.THROW" - } } }