commit af77f9d54ee62d7c4294bf628cfcd9de42844502
parent 87d5e21cdcb554531e12c57ca6c73d99daf3e3a8
Author: MS <ms@taler.net>
Date: Sat, 22 Apr 2023 10:16:36 +0200
addressing compilation warnings
Diffstat:
4 files changed, 2 insertions(+), 30 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
@@ -545,13 +545,6 @@ fun circuitApi(circuitRoute: Route) {
)
}
}
- fun failCashout(
- msg: String,
- op: CashoutOperationEntity,
- keep: Boolean = true
- ) {
-
- }
when (tanChannel) {
SupportedTanChannels.EMAIL.name -> {
val isSuccessful = try {
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/ConversionService.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/ConversionService.kt
@@ -95,7 +95,7 @@ fun downloadLoop(block: () -> Unit) {
*/
private fun applyBuyinRatioAndFees(
amount: BigDecimal,
- ratioAndFees: RatioAndFees
+ ratiosAndFees: RatioAndFees
): BigDecimal =
((amount * ratiosAndFees.buy_at_ratio.toBigDecimal())
- ratiosAndFees.buy_in_fee.toBigDecimal()).roundToTwoDigits()
diff --git a/util/src/main/kotlin/Config.kt b/util/src/main/kotlin/Config.kt
@@ -28,24 +28,6 @@ fun getVersion(): String {
}
/**
- * Set system properties to wanted values, and load logback configuration after.
- * While it can set any system property, it is used only to set the log file name.
- *
- * @param logFile filename of logfile. If null, then no logfile will be produced.
- * @param logFileNameAsProperty property that indicates the logfile name in logback configuration.
- * @param configFileName name of logback's config file. Typically something different
- * from "logback.xml" (otherwise logback will load it by itself upon startup.)
- */
-fun setLogFile(logFile: String?, logFileNameAsProperty: String, configFileName: String) {
- if (logFile != null) System.setProperty(logFileNameAsProperty, logFile)
- val configFilePath = Loader.getResource(configFileName, ClassLoader.getSystemClassLoader())
- if (configFilePath == null) {
- println("Warning: could not find log config file")
- }
- System.setProperty(ContextInitializer.CONFIG_FILE_PROPERTY, configFilePath.toString())
-}
-
-/**
* Set level of any logger belonging to LibEuFin (= has "libeufin" in name)
* _and_ found under the calling classpath (= obeying to the same logback.xml)
*/
diff --git a/util/src/main/kotlin/DB.kt b/util/src/main/kotlin/DB.kt
@@ -145,10 +145,7 @@ class PostgresListenHandle(val channelName: String) {
this.conn.close()
}
- fun postgresGetNotifications(
- timeoutMs: Long,
- keepConnectionOpen: Boolean = false
- ): Boolean {
+ fun postgresGetNotifications(timeoutMs: Long): Boolean {
if (timeoutMs == 0L)
logger.info("Database notification checker has timeout == 0," +
" that waits FOREVER until a notification arrives."