Removed unnecessary methods
This commit is contained in:
parent
8c81a1c8d8
commit
1695e32b0f
@ -303,20 +303,6 @@ public class Channels {
|
||||
ctx.getChannel(), message, remoteAddress));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a {@code "writeComplete"} event to the first
|
||||
* {@link ChannelUpstreamHandler} in the {@link ChannelPipeline} of
|
||||
* the specified {@link Channel}.
|
||||
*/
|
||||
public static void fireWriteComplete(Channel channel, int amount) {
|
||||
if (amount == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
channel.getPipeline().sendUpstream(
|
||||
new DefaultWriteCompletionEvent(channel, (long) amount));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a {@code "writeComplete"} event to the first
|
||||
* {@link ChannelUpstreamHandler} in the {@link ChannelPipeline} of
|
||||
@ -331,16 +317,6 @@ public class Channels {
|
||||
new DefaultWriteCompletionEvent(channel, amount));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a {@code "writeComplete"} event to the
|
||||
* {@link ChannelUpstreamHandler} which is placed in the closest upstream
|
||||
* from the handler associated with the specified
|
||||
* {@link ChannelHandlerContext}.
|
||||
*/
|
||||
public static void fireWriteComplete(ChannelHandlerContext ctx, int amount) {
|
||||
ctx.sendUpstream(new DefaultWriteCompletionEvent(ctx.getChannel(), (long) amount));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a {@code "writeComplete"} event to the
|
||||
* {@link ChannelUpstreamHandler} which is placed in the closest upstream
|
||||
|
@ -30,14 +30,6 @@ public class DefaultWriteCompletionEvent implements WriteCompletionEvent {
|
||||
private final Channel channel;
|
||||
private final long writtenAmount;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #DefaultWriteCompletionEvent(Channel, long)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public DefaultWriteCompletionEvent(Channel channel, int writtenAmount) {
|
||||
this(channel, (long) writtenAmount);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user