From f0503c7797c58c815b06b86eb4636bbfb5dbc897 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Tue, 29 Jul 2014 16:27:54 -0400 Subject: [PATCH] Unused --- .../database/UUIDFetcherRunnable.java | 51 ------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/main/java/com/gmail/nossr50/runnables/database/UUIDFetcherRunnable.java diff --git a/src/main/java/com/gmail/nossr50/runnables/database/UUIDFetcherRunnable.java b/src/main/java/com/gmail/nossr50/runnables/database/UUIDFetcherRunnable.java deleted file mode 100644 index 485e0f855..000000000 --- a/src/main/java/com/gmail/nossr50/runnables/database/UUIDFetcherRunnable.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.gmail.nossr50.runnables.database; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.UUID; - -import org.bukkit.scheduler.BukkitRunnable; - -import com.gmail.nossr50.mcMMO; -import com.gmail.nossr50.util.uuid.UUIDFetcher; - -public class UUIDFetcherRunnable extends BukkitRunnable { - private List names; - - public UUIDFetcherRunnable(List names) { - this.names = names; - } - - public UUIDFetcherRunnable(String name) { - this.names = new ArrayList(); - this.names.add(name); - } - - @Override - public void run() { - try { - Map returns = new UUIDFetcher(this.names).call(); - new CacheReturnedNames(returns).runTask(mcMMO.p); - } - catch (Exception e) { - e.printStackTrace(); - } - } - - private class CacheReturnedNames extends BukkitRunnable { - private Map returns; - - public CacheReturnedNames(Map returns) { - this.returns = returns; - } - - @Override - public void run() { - for (Entry entry : this.returns.entrySet()) { - mcMMO.getDatabaseManager().saveUserUUID(entry.getKey(), entry.getValue()); - } - } - } -}