Do not leak Kryo from atomix.storage
[controller.git] / third-party / atomix / storage / src / main / java / io / atomix / storage / journal / Indexed.java
index bfbd8cbc4c9121903f9e5ed1a0984ad5d5f3285b..cfb6a6750bf7cc1af4cdff39fef69246c5cfa54b 100644 (file)
@@ -67,16 +67,6 @@ public class Indexed<E> {
     return entry.getClass();
   }
 
-  /**
-   * Casts the entry to the given type.
-   *
-   * @return The cast entry.
-   */
-  @SuppressWarnings("unchecked")
-  public <E> Indexed<E> cast() {
-    return (Indexed<E>) this;
-  }
-
   @Override
   public String toString() {
     return toStringHelper(this)