From 5cdfd572985fbec212064a188fab7d3808e0dc90 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 228809ffec..7ddf973520 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 @@ -121,7 +120,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 boolean chunkedSupported; protected final boolean validateHeaders;