From 0ca14b4c4a99f66d614f58f040f4ee3d2cf2b401 Mon Sep 17 00:00:00 2001 From: galaxyoyo Date: Sun, 11 Jan 2015 13:21:59 +0100 Subject: [PATCH] =?UTF-8?q?Supprimm=C3=A9=20code=20de=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unknown/api/editor/EditorAPI.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/src/main/java/galaxyoyo/unknown/api/editor/EditorAPI.java b/src/main/java/galaxyoyo/unknown/api/editor/EditorAPI.java index 0d83152..37bc822 100644 --- a/src/main/java/galaxyoyo/unknown/api/editor/EditorAPI.java +++ b/src/main/java/galaxyoyo/unknown/api/editor/EditorAPI.java @@ -104,14 +104,7 @@ public class EditorAPI try { file.createNewFile(); - // BufferedWriter bw = new BufferedWriter(new FileWriter(file)); BufferedOutputStream bos = new BufferedOutputStream(new GZIPOutputStream(new FileOutputStream(file))); - /* for (char c : json.toCharArray()) - { - char ch = c; - - ch = (char) ((((int) c * 2) - 4) * 3); - }*/ bos.write(json.getBytes("UTF-8")); @@ -144,8 +137,6 @@ public class EditorAPI String json = null; try { - long startTime = System.currentTimeMillis(); - // BufferedReader br = new BufferedReader(new FileReader(f)); GZIPInputStream gis = new GZIPInputStream(new BufferedInputStream(new FileInputStream(f))); byte[] bytes = new byte[512*1024]; int count = 0; @@ -155,29 +146,15 @@ public class EditorAPI text += new String(bytes, 0, count, "UTF-8"); } gis.close(); - System.out.println("Took : " + (System.currentTimeMillis() - startTime) + " ms"); bytes = null; json = text; - - /* for (char c : text.toCharArray()) - { - char ch = c; - - ch = (char) (((c / 3) + 4) / 2); - - json += ch; - } - - json = json.substring(0, json.length() - 1);*/ } catch (IOException e) { e.printStackTrace(); } - LogManager.getLogger(EditorAPI.class).warn(json); - RawMap rm = createGson().fromJson(json, RawMap.class); return open(rm);