You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@baremaps.apache.org by bc...@apache.org on 2023/11/17 13:06:40 UTC

(incubator-baremaps) 04/07: Remove unused method

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

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

commit 501fa5229de2b55c2c44fb999d648df5eeaeba87
Author: Bertil Chapuis <bc...@gmail.com>
AuthorDate: Thu Nov 16 22:25:18 2023 +0100

    Remove unused method
---
 .../baremaps/workflow/tasks/UpdateOsmDatabase.java      | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java
index 9dce1563..b6513d04 100644
--- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java
+++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java
@@ -209,21 +209,4 @@ public class UpdateOsmDatabase implements Task {
           header.getReplicationUrl(), header.getSource(), header.getWritingProgram()));
     }
   }
-
-  /**
-   * Returns the URL of the file with the given sequence number.
-   * 
-   * @param replicationUrl the replication URL
-   * @param sequenceNumber the sequence number
-   * @param extension the file extension
-   * @return the URL of the file
-   * @throws MalformedURLException if the URL is malformed
-   */
-  public static URL resolve(String replicationUrl, Long sequenceNumber, String extension)
-      throws MalformedURLException {
-    var s = String.format("%09d", sequenceNumber);
-    var uri = String.format("%s/%s/%s/%s.%s", replicationUrl, s.substring(0, 3), s.substring(3, 6),
-        s.substring(6, 9), extension);
-    return URI.create(uri).toURL();
-  }
 }