From 7a96fd1dce46c7149dd46e78c87ccd6049a0adc4 Mon Sep 17 00:00:00 2001 From: snowleo Date: Mon, 6 Aug 2012 00:55:25 +0200 Subject: I should read javadoc properly. --- Essentials/src/com/earth2me/essentials/EssentialsConf.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/EssentialsConf.java b/Essentials/src/com/earth2me/essentials/EssentialsConf.java index e6a661caf..c1c7d0a58 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsConf.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsConf.java @@ -124,16 +124,7 @@ public class EssentialsConf extends YamlConfiguration channel.position(0); try { - int BUFFERSIZE = 1024; - long left = configFile.length() % BUFFERSIZE; - for (long i = 0; i < configFile.length() - left; i += BUFFERSIZE) - { - channel.read(buffer, BUFFERSIZE); - } - if (left > 0) - { - channel.read(buffer, left); - } + channel.read(buffer); retry = 0; } catch (ClosedByInterruptException ex) -- cgit v1.2.3