[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: addressing compilation warnings
From: |
gnunet |
Subject: |
[libeufin] branch master updated: addressing compilation warnings |
Date: |
Sat, 22 Apr 2023 10:16:46 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new af77f9d5 addressing compilation warnings
af77f9d5 is described below
commit af77f9d54ee62d7c4294bf628cfcd9de42844502
Author: MS <ms@taler.net>
AuthorDate: Sat Apr 22 10:16:36 2023 +0200
addressing compilation warnings
---
.../main/kotlin/tech/libeufin/sandbox/CircuitApi.kt | 7 -------
.../kotlin/tech/libeufin/sandbox/ConversionService.kt | 2 +-
util/src/main/kotlin/Config.kt | 18 ------------------
util/src/main/kotlin/DB.kt | 5 +----
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
index d3786968..70642899 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
@@ -544,13 +544,6 @@ fun circuitApi(circuitRoute: Route) {
"Cash-out address for '$user' not found, after previous
check succeeded"
)
}
- }
- fun failCashout(
- msg: String,
- op: CashoutOperationEntity,
- keep: Boolean = true
- ) {
-
}
when (tanChannel) {
SupportedTanChannels.EMAIL.name -> {
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/ConversionService.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/ConversionService.kt
index a4cfccbb..a6572b57 100644
--- 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
index 2b1da1ac..2dc7179e 100644
--- a/util/src/main/kotlin/Config.kt
+++ b/util/src/main/kotlin/Config.kt
@@ -27,24 +27,6 @@ fun getVersion(): String {
).readText()
}
-/**
- * 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
index a0bc789a..90065529 100644
--- 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."
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: addressing compilation warnings,
gnunet <=