From 755f14aa9057144b550889303ce00c1d5b39f0e2 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 16 Oct 2018 13:00:50 +1300 Subject: Remove unused method --- src/org/traccar/BasePipelineFactory.java | 13 ------------- src/org/traccar/PipelineBuilder.java | 2 -- 2 files changed, 15 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java index 3c309d224..ec935f5c9 100644 --- a/src/org/traccar/BasePipelineFactory.java +++ b/src/org/traccar/BasePipelineFactory.java @@ -265,19 +265,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer { } pipeline.addLast(handler); } - - // TODO remove - @Override - public void addLast(String name, ChannelHandler handler) { - if (!(handler instanceof BaseProtocolDecoder || handler instanceof BaseProtocolEncoder)) { - if (handler instanceof ChannelInboundHandler) { - handler = new WrapperInboundHandler((ChannelInboundHandler) handler); - } else { - handler = new WrapperOutboundHandler((ChannelOutboundHandler) handler); - } - } - pipeline.addLast(name, handler); - } }); addHandlers( diff --git a/src/org/traccar/PipelineBuilder.java b/src/org/traccar/PipelineBuilder.java index ecf746843..3334040b1 100644 --- a/src/org/traccar/PipelineBuilder.java +++ b/src/org/traccar/PipelineBuilder.java @@ -21,6 +21,4 @@ public interface PipelineBuilder { void addLast(ChannelHandler handler); - void addLast(String name, ChannelHandler handler); // TODO remove - } -- cgit v1.2.3