From d10c946e1b5a50fd0168bd4048d40394a57a1a1e Mon Sep 17 00:00:00 2001 From: feijermu Date: Mon, 11 May 2020 21:31:56 +0800 Subject: [PATCH] Remove a unused private method with empty body in HttpConversionUtil.java (#10266) Motivation: After searching the whole netty project, I found that the private method `translateHeader(...)` with empty body is never used actually. So I think it could be safely removed. Modification: Just remove this unused method. Result: Clean up the code. --- .../java/io/netty/handler/codec/http2/HttpConversionUtil.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/HttpConversionUtil.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/HttpConversionUtil.java index 8ffbd28533..cd2444168c 100644 --- a/codec-http2/src/main/java/io/netty/handler/codec/http2/HttpConversionUtil.java +++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/HttpConversionUtil.java @@ -654,8 +654,5 @@ public final class HttpConversionUtil { output.add(COOKIE, cookies.toString()); } } - - private void translateHeader(Entry entry) throws Http2Exception { - } } }