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
The following commit(s) were added to refs/heads/sonar by this push:
new e66c007d Remove unnecessary method
e66c007d is described below
commit e66c007da7c2ad7aacae9518984dec0f97db2c6a
Author: Bertil Chapuis <[email protected]>
AuthorDate: Thu Jun 13 00:14:26 2024 +0200
Remove unnecessary method
---
.../baremaps/workflow/tasks/UpdateOsmDatabase.java | 32 ----------------------
1 file changed, 32 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 52d847fb..fe47fcd0 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
@@ -79,38 +79,6 @@ public class UpdateOsmDatabase implements Task {
var nodeRepository = new NodeRepository(datasource);
var wayRepository = new WayRepository(datasource);
var relationRepository = new RelationRepository(datasource);
- execute(
- coordinateMap,
- referenceMap,
- headerRepository,
- nodeRepository,
- wayRepository,
- relationRepository,
- databaseSrid,
- replicationUrl);
- }
-
- /**
- * Executes the task.
- *
- * @param coordinateMap the coordinate map
- * @param referenceMap the reference map
- * @param headerRepository the header repository
- * @param nodeRepository the node repository
- * @param wayRepository the way repository
- * @param relationRepository the relation repository
- * @param databaseSrid the SRID
- * @throws Exception if something went wrong
- */
- public static void execute(
- Map<Long, Coordinate> coordinateMap,
- Map<Long, List<Long>> referenceMap,
- HeaderRepository headerRepository,
- Repository<Long, Node> nodeRepository,
- Repository<Long, Way> wayRepository,
- Repository<Long, Relation> relationRepository,
- Integer databaseSrid,
- String replicationUrl) throws Exception {
// Get the latest header from the database
var header = headerRepository.selectLatest();