aboutsummaryrefslogtreecommitdiff
path: root/kvision-tools/kvision-compiler-plugin/src/main/kotlin
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-02-09 00:02:38 +0100
committerRobert Jaros <rjaros@finn.pl>2020-02-09 00:02:38 +0100
commit321fadf3b8381b9d33cb6c5208d0bf6c4d7923f7 (patch)
tree1cb143c9756044d27c53302836d69980e1474450 /kvision-tools/kvision-compiler-plugin/src/main/kotlin
parentf8ff7ea49d2154d249c79a8c9591614793213e9e (diff)
downloadkvision-321fadf3b8381b9d33cb6c5208d0bf6c4d7923f7.tar.gz
kvision-321fadf3b8381b9d33cb6c5208d0bf6c4d7923f7.tar.bz2
kvision-321fadf3b8381b9d33cb6c5208d0bf6c4d7923f7.zip
Simplify bindings definitions for remote components (select, typeahead)
Diffstat (limited to 'kvision-tools/kvision-compiler-plugin/src/main/kotlin')
-rw-r--r--kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt7
1 files changed, 0 insertions, 7 deletions
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<RemoteOption>" ->
- 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<RemoteOption>" -> appendln(
- " override suspend fun $name(${getParameterList(
- params
- )}) = emptyList<RemoteOption>()"
- )
else -> appendln(
" override suspend fun $name(${getParameterList(params)}) = call($iName::$name, ${getParameterNames(
params