From dbc7277ba97b830cf64009448c4cebc5c9e55965 Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 4 Jul 2012 09:45:47 -0400 Subject: [PATCH] FileWriter is pointless here. --- src/main/java/com/gmail/nossr50/util/Users.java | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/Users.java b/src/main/java/com/gmail/nossr50/util/Users.java index bbb1b15ac..7dd99cd54 100644 --- a/src/main/java/com/gmail/nossr50/util/Users.java +++ b/src/main/java/com/gmail/nossr50/util/Users.java @@ -1,7 +1,6 @@ package com.gmail.nossr50.util; import java.io.File; -import java.io.FileWriter; import java.io.IOException; import java.util.HashMap; import java.util.Map; @@ -21,16 +20,12 @@ public class Users { public static void loadUsers() { new File(mcMMO.flatFileDirectory).mkdir(); new File(mcMMO.leaderboardDirectory).mkdir(); - new File(mcMMO.usersFile).createNewFile(); - if (!theDir.exists()) { - try { - FileWriter writer = new FileWriter(theDir); - writer.close(); - } - catch (IOException e) { - e.printStackTrace(); - } + try { + new File(mcMMO.usersFile).createNewFile(); + } + catch (IOException e) { + e.printStackTrace(); } }