From e4b5290e4898858612da882d9186b2aba548a9d9 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 27 Feb 2020 15:28:16 +0100 Subject: Remove deprecated methods. Style fixes. --- src/main/kotlin/pl/treksoft/kvision/form/check/CheckBox.kt | 9 --------- src/main/kotlin/pl/treksoft/kvision/form/check/Radio.kt | 9 --------- 2 files changed, 18 deletions(-) (limited to 'src/main/kotlin/pl/treksoft/kvision/form/check') diff --git a/src/main/kotlin/pl/treksoft/kvision/form/check/CheckBox.kt b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckBox.kt index 7dae0f86..60147114 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/check/CheckBox.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckBox.kt @@ -127,15 +127,6 @@ open class CheckBox( return input.setEventListener(block) } - @Deprecated( - "Use onEvent extension function instead.", - ReplaceWith("onEvent(block)", "pl.treksoft.kvision.core.onEvent") - ) - override fun setEventListener(block: SnOn.() -> Unit): Int { - @Suppress("DEPRECATION") - return input.setEventListener(block) - } - override fun removeEventListener(id: Int): Widget { input.removeEventListener(id) return this diff --git a/src/main/kotlin/pl/treksoft/kvision/form/check/Radio.kt b/src/main/kotlin/pl/treksoft/kvision/form/check/Radio.kt index 4d8a1607..b8757da2 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/check/Radio.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/check/Radio.kt @@ -137,15 +137,6 @@ open class Radio( return input.setEventListener(block) } - @Deprecated( - "Use onEvent extension function instead.", - ReplaceWith("onEvent(block)", "pl.treksoft.kvision.core.onEvent") - ) - override fun setEventListener(block: SnOn.() -> Unit): Int { - @Suppress("DEPRECATION") - return input.setEventListener(block) - } - override fun removeEventListener(id: Int): Widget { input.removeEventListener(id) return this -- cgit