This is an automated email from the ASF dual-hosted git repository.

bchapuis pushed a commit to branch sonar
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git

commit f6852ba88980a44bfd3b38fe2b80f5d82df223a8
Author: Bertil Chapuis <[email protected]>
AuthorDate: Wed Jun 12 23:42:13 2024 +0200

    Remove unused methods
---
 .../java/org/apache/baremaps/utils/PostgresUtils.java   | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git 
a/baremaps-core/src/main/java/org/apache/baremaps/utils/PostgresUtils.java 
b/baremaps-core/src/main/java/org/apache/baremaps/utils/PostgresUtils.java
index 32da3bf8..7b41740a 100644
--- a/baremaps-core/src/main/java/org/apache/baremaps/utils/PostgresUtils.java
+++ b/baremaps-core/src/main/java/org/apache/baremaps/utils/PostgresUtils.java
@@ -164,23 +164,6 @@ public final class PostgresUtils {
     return new HikariDataSource(config);
   }
 
-  /**
-   * Appends the multi-queries parameter to the given JDBC URL.
-   *
-   * @param jdbcUrl the JDBC URL
-   * @return the JDBC URL with the multi-queries parameter
-   */
-  private static String withAllowMultiQueriesParameter(String jdbcUrl) {
-    if (jdbcUrl == null || jdbcUrl.isEmpty()) {
-      return jdbcUrl;
-    }
-    if (jdbcUrl.contains("?")) {
-      return jdbcUrl + "&allowMultiQueries=true";
-    } else {
-      return jdbcUrl + "?allowMultiQueries=true";
-    }
-  }
-
   /**
    * Executes the queries contained in a resource file.
    *

Reply via email to