aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-07-08 12:44:27 +0200
committerRobert Jaros <rjaros@finn.pl>2019-07-08 12:44:27 +0200
commitdd2413b5e900efee16b352b99d1370b9ed43735a (patch)
treeeed2a50a05bd8abf70c225ad4f5aa525bccb90cd
parent0acabe1d44111a3a118116d526b415572caf8050 (diff)
downloadkvision-dd2413b5e900efee16b352b99d1370b9ed43735a.tar.gz
kvision-dd2413b5e900efee16b352b99d1370b9ed43735a.tar.bz2
kvision-dd2413b5e900efee16b352b99d1370b9ed43735a.zip
Remove some unused things.
-rw-r--r--kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt2
-rw-r--r--kvision-modules/kvision-select-remote/build.gradle8
-rw-r--r--kvision-modules/kvision-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/RemoteSelectInput.kt5
3 files changed, 3 insertions, 12 deletions
diff --git a/kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt b/kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt
index d5c77534..77ae00cf 100644
--- a/kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt
+++ b/kvision-modules/kvision-pace/src/main/kotlin/pl/treksoft/kvision/pace/Pace.kt
@@ -139,7 +139,7 @@ class PaceOptions(
class Pace {
companion object {
- fun init(req: dynamic = require("pace-progressbar/themes/blue/pace-theme-flash.css")) {
+ fun init(@Suppress("UNUSED_PARAMETER") req: dynamic = require("pace-progressbar/themes/blue/pace-theme-flash.css")) {
}
fun setOptions(options: PaceOptions) {
diff --git a/kvision-modules/kvision-select-remote/build.gradle b/kvision-modules/kvision-select-remote/build.gradle
index da912bf0..739c7a53 100644
--- a/kvision-modules/kvision-select-remote/build.gradle
+++ b/kvision-modules/kvision-select-remote/build.gradle
@@ -4,11 +4,3 @@ dependencies {
compile project(":kvision-modules:kvision-select")
compile project(":kvision-modules:kvision-remote")
}
-
-kotlinFrontend {
-
- npm {
- dependency("jquery-deparam", "0.5.3")
- }
-
-}
diff --git a/kvision-modules/kvision-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/RemoteSelectInput.kt b/kvision-modules/kvision-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/RemoteSelectInput.kt
index 1a0fb3fb..ff1b04f4 100644
--- a/kvision-modules/kvision-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/RemoteSelectInput.kt
+++ b/kvision-modules/kvision-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/RemoteSelectInput.kt
@@ -35,7 +35,6 @@ import pl.treksoft.kvision.remote.KVServiceManager
import pl.treksoft.kvision.remote.RemoteSelectOption
import pl.treksoft.kvision.utils.JSON
import pl.treksoft.kvision.utils.obj
-import kotlin.js.JSON as NativeJSON
external fun decodeURIComponent(encodedURI: String): String
@@ -61,8 +60,8 @@ open class RemoteSelectInput<T : Any>(
) : SelectInput(null, value, multiple, null, classes) {
init {
val (url, method) =
- serviceManager.getCalls()[function.toString().replace("\\s".toRegex(), "")]
- ?: throw IllegalStateException("Function not specified!")
+ serviceManager.getCalls()[function.toString().replace("\\s".toRegex(), "")]
+ ?: throw IllegalStateException("Function not specified!")
val data = obj {
q = "{{{q}}}"
}