From 0e6a6e6c3f3360031977dfd0b36ac756a15c4820 Mon Sep 17 00:00:00 2001 From: Denis Molony Date: Tue, 16 Aug 2016 16:45:57 +1000 Subject: [PATCH] tidying --- .../diskbrowser/wizardry/Wizardry4BootDisk.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/com/bytezone/diskbrowser/wizardry/Wizardry4BootDisk.java b/src/com/bytezone/diskbrowser/wizardry/Wizardry4BootDisk.java index 55fd7ab..b414eae 100644 --- a/src/com/bytezone/diskbrowser/wizardry/Wizardry4BootDisk.java +++ b/src/com/bytezone/diskbrowser/wizardry/Wizardry4BootDisk.java @@ -85,20 +85,13 @@ public class Wizardry4BootDisk extends PascalDisk fileEntry = (FileEntry) huffNode.getUserObject (); if (fileEntry != null) { - // byte[] tree = new byte[256]; - // byte[] left = new byte[256]; - // byte[] right = new byte[256]; byte[] buffer = fileEntry.getDataSource ().buffer; - // System.arraycopy (buffer, 0, tree, 0, 256); - // System.arraycopy (buffer, 256, left, 0, 256); - // System.arraycopy (buffer, 512, right, 0, 256); Huffman huffman = new Huffman (buffer); - System.out.println (huffman.getMessage (messageBlock.getMessage (2043))); - System.out.println (huffman.getMessage (messageBlock.getMessage (2044))); - System.out.println (huffman.getMessage (messageBlock.getMessage (2045))); + for (int msg = 2043; msg <= 2045; msg++) + System.out.println (huffman.getMessage (messageBlock.getMessage (msg))); } }