From 321fadf3b8381b9d33cb6c5208d0bf6c4d7923f7 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 9 Feb 2020 00:02:38 +0100 Subject: Simplify bindings definitions for remote components (select, typeahead) --- .../src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt | 7 ------- 1 file changed, 7 deletions(-) (limited to 'kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl') diff --git a/kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt b/kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt index e09c9021..31ed4ffd 100644 --- a/kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt +++ b/kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt @@ -98,8 +98,6 @@ class KVProcessor : AbstractProcessor() { when { it.returnType.toString().startsWith("RemoteData") -> appendln(" bindTabulatorRemote($iName::${it.name})") - it.returnType.toString() == "List" -> - appendln(" bindSelectRemote($iName::${it.name})") else -> appendln(" bind($iName::${it.name})") } } @@ -149,11 +147,6 @@ class KVProcessor : AbstractProcessor() { params )}) = ${it.returnType.toString()}()" ) - it.returnType.toString() == "List" -> appendln( - " override suspend fun $name(${getParameterList( - params - )}) = emptyList()" - ) else -> appendln( " override suspend fun $name(${getParameterList(params)}) = call($iName::$name, ${getParameterNames( params -- cgit