Remove a method of no use
This commit is contained in:
parent
0c55c85d06
commit
88e83462b0
@ -2,8 +2,6 @@ package io.netty.handler.codec.http;
|
||||
|
||||
import static io.netty.handler.codec.http.CookieEncoderUtil.*;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* Encodes client-side {@link Cookie}s into an HTTP header value. This encoder can encode
|
||||
* the HTTP cookie version 0, 1, and 2.
|
||||
@ -53,22 +51,6 @@ public final class ClientCookieEncoder {
|
||||
return stripTrailingSeparator(buf);
|
||||
}
|
||||
|
||||
public static String encode(Collection<Cookie> cookies) {
|
||||
if (cookies == null) {
|
||||
throw new NullPointerException("cookies");
|
||||
}
|
||||
|
||||
StringBuilder buf = new StringBuilder();
|
||||
for (Cookie c: cookies) {
|
||||
if (c == null) {
|
||||
break;
|
||||
}
|
||||
|
||||
encode(buf, c);
|
||||
}
|
||||
return stripTrailingSeparator(buf);
|
||||
}
|
||||
|
||||
public static String encode(Iterable<Cookie> cookies) {
|
||||
if (cookies == null) {
|
||||
throw new NullPointerException("cookies");
|
||||
|
Loading…
Reference in New Issue
Block a user