From 443e32ae28a61b9e9810fb427718916c757ea198 Mon Sep 17 00:00:00 2001 From: Vlad Ilyushchenko Date: Thu, 16 May 2019 20:10:03 +0100 Subject: [PATCH] code tidy up --- benchmarks/src/main/java/org/questdb/Log4jBenchmark.java | 2 -- .../cutlass/http/processors/TextImportProcessorState.java | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/benchmarks/src/main/java/org/questdb/Log4jBenchmark.java b/benchmarks/src/main/java/org/questdb/Log4jBenchmark.java index d4d08ee4b..f78a71ea4 100644 --- a/benchmarks/src/main/java/org/questdb/Log4jBenchmark.java +++ b/benchmarks/src/main/java/org/questdb/Log4jBenchmark.java @@ -32,7 +32,6 @@ import org.openjdk.jmh.runner.options.Options; import org.openjdk.jmh.runner.options.OptionsBuilder; import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicLong; @State(Scope.Thread) @BenchmarkMode(Mode.AverageTime) @@ -40,7 +39,6 @@ import java.util.concurrent.atomic.AtomicLong; public class Log4jBenchmark { private static Logger LOG = LogManager.getLogger(Log4jBenchmark.class); - private final AtomicLong value = new AtomicLong(0); private long counter = 0; public static void main(String[] args) throws RunnerException { diff --git a/core/src/main/java/com/questdb/cutlass/http/processors/TextImportProcessorState.java b/core/src/main/java/com/questdb/cutlass/http/processors/TextImportProcessorState.java index 90ddf3ddd..c34966785 100644 --- a/core/src/main/java/com/questdb/cutlass/http/processors/TextImportProcessorState.java +++ b/core/src/main/java/com/questdb/cutlass/http/processors/TextImportProcessorState.java @@ -27,8 +27,6 @@ import com.questdb.cairo.sql.CairoEngine; import com.questdb.cutlass.json.JsonException; import com.questdb.cutlass.text.TextConfiguration; import com.questdb.cutlass.text.TextLoader; -import com.questdb.log.Log; -import com.questdb.log.LogFactory; import com.questdb.std.Misc; import com.questdb.std.Mutable; import com.questdb.std.time.DateFormatFactory; @@ -38,9 +36,8 @@ import java.io.Closeable; class TextImportProcessorState implements Mutable, Closeable { public static final int STATE_OK = 0; - public static final int STATE_INVALID_FORMAT = 1; + // public static final int STATE_INVALID_FORMAT = 1; public static final int STATE_DATA_ERROR = 2; - private static final Log LOG = LogFactory.getLog(TextImportProcessorState.class); final TextLoader textLoader; public int columnIndex = 0; String stateMessage; -- GitLab