Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Nov 16, 2023
1 parent a8d8939 commit 8cd22e2
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,21 +209,4 @@ public static void execute(DataMap<Long, Coordinate> coordinateMap,
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();
}
}

0 comments on commit 8cd22e2

Please sign in to comment.