From 9182d94b8a3d433516472974bdbaa6a3b0485ded Mon Sep 17 00:00:00 2001 From: Nelson Tavares de Sousa <stu103017@mail.uni-kiel.de> Date: Thu, 16 Oct 2014 14:35:03 +0200 Subject: [PATCH] Removed deprecated method IPipeFactory.create(int capacity), which is never used --- src/main/java/teetime/framework/pipe/IPipeFactory.java | 10 ---------- .../pipe/OrderedGrowableArrayPipeFactory.java | 5 ----- .../framework/pipe/SingleElementPipeFactory.java | 8 -------- .../java/teetime/framework/pipe/SpScPipeFactory.java | 5 ----- .../framework/pipe/UnorderedGrowablePipeFactory.java | 8 -------- 5 files changed, 36 deletions(-) diff --git a/src/main/java/teetime/framework/pipe/IPipeFactory.java b/src/main/java/teetime/framework/pipe/IPipeFactory.java index 32ad20cc..a37955e8 100644 --- a/src/main/java/teetime/framework/pipe/IPipeFactory.java +++ b/src/main/java/teetime/framework/pipe/IPipeFactory.java @@ -10,16 +10,6 @@ import teetime.framework.pipe.PipeFactoryRegistry.ThreadCommunication; */ public interface IPipeFactory { - /** - * @deprecated Use {@link #create(OutputPort, InputPort)} or {@link #create(OutputPort, InputPort, int)} instead - * - * @param capacity - * Number of elements the pipe can carry - * @return instance of the created pipe - */ - @Deprecated - IPipe create(int capacity); - /** * Connects two stages with a pipe of default capacity. * diff --git a/src/main/java/teetime/framework/pipe/OrderedGrowableArrayPipeFactory.java b/src/main/java/teetime/framework/pipe/OrderedGrowableArrayPipeFactory.java index 9142b80e..ce5c89d8 100644 --- a/src/main/java/teetime/framework/pipe/OrderedGrowableArrayPipeFactory.java +++ b/src/main/java/teetime/framework/pipe/OrderedGrowableArrayPipeFactory.java @@ -7,11 +7,6 @@ import teetime.framework.pipe.PipeFactoryRegistry.ThreadCommunication; public class OrderedGrowableArrayPipeFactory implements IPipeFactory { - @Override - public IPipe create(final int capacity) { - return create(null, null, capacity); - } - @Override public <T> IPipe create(final OutputPort<? extends T> sourcePort, final InputPort<T> targetPort) { return create(sourcePort, targetPort, 4); diff --git a/src/main/java/teetime/framework/pipe/SingleElementPipeFactory.java b/src/main/java/teetime/framework/pipe/SingleElementPipeFactory.java index b51000fa..7a76c744 100644 --- a/src/main/java/teetime/framework/pipe/SingleElementPipeFactory.java +++ b/src/main/java/teetime/framework/pipe/SingleElementPipeFactory.java @@ -7,14 +7,6 @@ import teetime.framework.pipe.PipeFactoryRegistry.ThreadCommunication; public class SingleElementPipeFactory implements IPipeFactory { - /** - * Hint: The capacity for this pipe implementation is ignored - */ - @Override - public IPipe create(final int capacity) { - return create(null, null); - } - @Override public <T> IPipe create(final OutputPort<? extends T> sourcePort, final InputPort<T> targetPort) { return create(sourcePort, targetPort, 1); diff --git a/src/main/java/teetime/framework/pipe/SpScPipeFactory.java b/src/main/java/teetime/framework/pipe/SpScPipeFactory.java index 745e7971..88e4d59b 100644 --- a/src/main/java/teetime/framework/pipe/SpScPipeFactory.java +++ b/src/main/java/teetime/framework/pipe/SpScPipeFactory.java @@ -7,11 +7,6 @@ import teetime.framework.pipe.PipeFactoryRegistry.ThreadCommunication; public class SpScPipeFactory implements IPipeFactory { - @Override - public IPipe create(final int capacity) { - return create(null, null, capacity); - } - @Override public <T> IPipe create(final OutputPort<? extends T> sourcePort, final InputPort<T> targetPort) { return create(sourcePort, targetPort, 4); diff --git a/src/main/java/teetime/framework/pipe/UnorderedGrowablePipeFactory.java b/src/main/java/teetime/framework/pipe/UnorderedGrowablePipeFactory.java index 219d95d7..7809347a 100644 --- a/src/main/java/teetime/framework/pipe/UnorderedGrowablePipeFactory.java +++ b/src/main/java/teetime/framework/pipe/UnorderedGrowablePipeFactory.java @@ -7,14 +7,6 @@ import teetime.framework.pipe.PipeFactoryRegistry.ThreadCommunication; public class UnorderedGrowablePipeFactory implements IPipeFactory { - /** - * Hint: The capacity for this pipe implementation is ignored - */ - @Override - public IPipe create(final int capacity) { - return create(null, null, capacity); - } - @Override public <T> IPipe create(final OutputPort<? extends T> sourcePort, final InputPort<T> targetPort) { return create(sourcePort, targetPort, 4); -- GitLab