From a0c9db25e5f607fd7d6d7ab855fc80c95f6e167a Mon Sep 17 00:00:00 2001 From: Sho SHIMIZU Date: Mon, 22 Feb 2016 14:51:40 -0800 Subject: [PATCH] Remove methods deprecated in Drake from Instructions Change-Id: I69ffc7fc30f20e0d968fe95b0cfcf609a0c7cc29 --- .../net/flow/instructions/Instructions.java | 52 ------------------- 1 file changed, 52 deletions(-) diff --git a/core/api/src/main/java/org/onosproject/net/flow/instructions/Instructions.java b/core/api/src/main/java/org/onosproject/net/flow/instructions/Instructions.java index 4d0256fb99..878d654ce4 100644 --- a/core/api/src/main/java/org/onosproject/net/flow/instructions/Instructions.java +++ b/core/api/src/main/java/org/onosproject/net/flow/instructions/Instructions.java @@ -425,19 +425,6 @@ public final class Instructions { return new L2ModificationInstruction.ModTunnelIdInstruction(tunnelId); } - /** - * Creates a TCP src modification. - * - * @param port the TCP port number to modify to - * @return a L4 modification - * @deprecated in Drake release - */ - @Deprecated - public static L4ModificationInstruction modTcpSrc(short port) { - checkNotNull(port, "Src TCP port cannot be null"); - return new ModTransportPortInstruction(L4SubType.TCP_SRC, TpPort.tpPort(port)); - } - /** * Creates a TCP src modification. * @@ -449,19 +436,6 @@ public final class Instructions { return new ModTransportPortInstruction(L4SubType.TCP_SRC, port); } - /** - * Creates a TCP dst modification. - * - * @param port the TCP port number to modify to - * @return a L4 modification - * @deprecated in Drake release - */ - @Deprecated - public static L4ModificationInstruction modTcpDst(short port) { - checkNotNull(port, "Dst TCP port cannot be null"); - return new ModTransportPortInstruction(L4SubType.TCP_DST, TpPort.tpPort(port)); - } - /** * Creates a TCP dst modification. * @@ -473,19 +447,6 @@ public final class Instructions { return new ModTransportPortInstruction(L4SubType.TCP_DST, port); } - /** - * Creates a UDP src modification. - * - * @param port the UDP port number to modify to - * @return a L4 modification - * @deprecated in Drake release - */ - @Deprecated - public static L4ModificationInstruction modUdpSrc(short port) { - checkNotNull(port, "Src UDP port cannot be null"); - return new ModTransportPortInstruction(L4SubType.UDP_SRC, TpPort.tpPort(port)); - } - /** * Creates a UDP src modification. * @@ -497,19 +458,6 @@ public final class Instructions { return new ModTransportPortInstruction(L4SubType.UDP_SRC, port); } - /** - * Creates a UDP dst modification. - * - * @param port the UDP port number to modify to - * @return a L4 modification - * @deprecated in Drake release - */ - @Deprecated - public static L4ModificationInstruction modUdpDst(short port) { - checkNotNull(port, "Dst UDP port cannot be null"); - return new ModTransportPortInstruction(L4SubType.UDP_DST, TpPort.tpPort(port)); - } - /** * Creates a UDP dst modification. *