From 1b8333e1305f1a0c0cef603a99cacacfdfabcc4b Mon Sep 17 00:00:00 2001 From: Matthew Messinger Date: Sun, 19 Aug 2018 13:40:17 -0400 Subject: [PATCH] Delete unused Later class --- .../java/com/voxelmodpack/hdskins/Later.java | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/hdskins/java/com/voxelmodpack/hdskins/Later.java diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/Later.java b/src/hdskins/java/com/voxelmodpack/hdskins/Later.java deleted file mode 100644 index 2e979663..00000000 --- a/src/hdskins/java/com/voxelmodpack/hdskins/Later.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.voxelmodpack.hdskins; - -public final class Later extends Thread { - - private final int delay; - - protected Later(int delay, Runnable runnable) { - super(runnable); - this.delay = delay; - setDaemon(true); - setName("Later#" + getId()); - } - - public static void performLater(int delay, Runnable callable) { - new Later(delay, callable).start(); - } - - public static void performNow(Runnable callable) { - new Later(0, callable).start(); - } - - @Override - public void run() { - try { - if (delay > 0) sleep(delay); - } catch (InterruptedException e) {} - super.run(); - } -}