From 5e9bf99deb46e57deb7305e67c0b21d9b0e198b5 Mon Sep 17 00:00:00 2001 From: Ned Loynd Date: Tue, 10 Oct 2023 15:17:38 +1100 Subject: [PATCH] Revert "Minor performance improvement" This reverts commit c6227973ab5b10f736233e929bba9e3f3192da97. --- .../com/github/NeRdTheNed/deft4j/deflate/DeflateStream.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deft4j-base/src/main/java/com/github/NeRdTheNed/deft4j/deflate/DeflateStream.java b/deft4j-base/src/main/java/com/github/NeRdTheNed/deft4j/deflate/DeflateStream.java index a021fde..5a70d2e 100644 --- a/deft4j-base/src/main/java/com/github/NeRdTheNed/deft4j/deflate/DeflateStream.java +++ b/deft4j-base/src/main/java/com/github/NeRdTheNed/deft4j/deflate/DeflateStream.java @@ -259,7 +259,6 @@ private static DeflateBlockHuffman optimiseBlockHelper(DeflateBlockHuffman block private static final boolean[] TRUE_FALSE = {true, false}; private static final boolean[] FALSE_TRUE = {false, true}; private static final boolean[] FALSE = {false}; - private static final boolean[] TRUE = {true}; private static final boolean[] ALT_8_ARR = TRY_ALT_8 ? new boolean[] {DEFAULT_8, ALT_8} : new boolean[] {DEFAULT_8}; private static void addOptimisedRecoded(Consumer> callback, DeflateBlockHuffman toOptimise, String baseName, long position) { @@ -281,7 +280,7 @@ private static void addOptimisedRecoded(Consumer