From 976486f021bc0d96c022fb563644ef582864101b Mon Sep 17 00:00:00 2001 From: skyguard1 Date: Mon, 19 Apr 2021 16:09:40 +0800 Subject: [PATCH] [Clean] Remove useless code (#11154) Motivation: There is an unused field Modifications: Remove useless code Result: Code cleanup Co-authored-by: xingrufei --- .../java/io/netty/handler/codec/http/HttpObjectDecoder.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java index f946a71712..a79c1f5238 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java @@ -29,7 +29,6 @@ import io.netty.util.ByteProcessor; import io.netty.util.internal.AppendableCharSequence; import java.util.List; -import java.util.regex.Pattern; /** * Decodes {@link ByteBuf}s into {@link HttpMessage}s and @@ -130,7 +129,6 @@ public abstract class HttpObjectDecoder extends ByteToMessageDecoder { public static final boolean DEFAULT_ALLOW_DUPLICATE_CONTENT_LENGTHS = false; private static final String EMPTY_VALUE = ""; - private static final Pattern COMMA_PATTERN = Pattern.compile(","); private final int maxChunkSize; private final boolean chunkedSupported;