Remove methods deprecated in Drake from Instructions

Change-Id: I69ffc7fc30f20e0d968fe95b0cfcf609a0c7cc29
This commit is contained in:
Sho SHIMIZU 2016-02-22 14:51:40 -08:00 committed by Gerrit Code Review
parent 7266738e70
commit a0c9db25e5

View File

@ -425,19 +425,6 @@ public final class Instructions {
return new L2ModificationInstruction.ModTunnelIdInstruction(tunnelId); 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. * Creates a TCP src modification.
* *
@ -449,19 +436,6 @@ public final class Instructions {
return new ModTransportPortInstruction(L4SubType.TCP_SRC, port); 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. * Creates a TCP dst modification.
* *
@ -473,19 +447,6 @@ public final class Instructions {
return new ModTransportPortInstruction(L4SubType.TCP_DST, port); 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. * Creates a UDP src modification.
* *
@ -497,19 +458,6 @@ public final class Instructions {
return new ModTransportPortInstruction(L4SubType.UDP_SRC, port); 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. * Creates a UDP dst modification.
* *