Skip to content
Snippets Groups Projects
Commit 9182d94b authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

Removed deprecated method IPipeFactory.create(int capacity), which is

never used
parent 7cc95813
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment