Skip to content

Commit

Permalink
Remove Legacy UUID Generator (elastic#42204)
Browse files Browse the repository at this point in the history
* This isn't used anymore in 8.0
  • Loading branch information
original-brownbear authored and Gurkan Kaymak committed May 27, 2019
1 parent e172e80 commit 18c5977
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 93 deletions.

This file was deleted.

6 changes: 0 additions & 6 deletions server/src/main/java/org/elasticsearch/common/UUIDs.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
public class UUIDs {

private static final RandomBasedUUIDGenerator RANDOM_UUID_GENERATOR = new RandomBasedUUIDGenerator();
private static final UUIDGenerator LEGACY_TIME_UUID_GENERATOR = new LegacyTimeBasedUUIDGenerator();
private static final UUIDGenerator TIME_UUID_GENERATOR = new TimeBasedUUIDGenerator();

/** Generates a time-based UUID (similar to Flake IDs), which is preferred when generating an ID to be indexed into a Lucene index as
Expand All @@ -35,11 +34,6 @@ public static String base64UUID() {
return TIME_UUID_GENERATOR.getBase64UUID();
}

/** Legacy implementation of {@link #base64UUID()}, for pre 6.0 indices. */
public static String legacyBase64UUID() {
return LEGACY_TIME_UUID_GENERATOR.getBase64UUID();
}

/** Returns a Base64 encoded version of a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using the
* provided {@code Random} instance */
public static String randomBase64UUID(Random random) {
Expand Down

0 comments on commit 18c5977

Please sign in to comment.