diff --git a/src/main/java/net/floodlightcontroller/core/IOFSwitch.java b/src/main/java/net/floodlightcontroller/core/IOFSwitch.java index 65012c635c59df01cd65445b1b7d07d4cea77812..11212ea084e4aefe0cf6f79d581e2809752e3b01 100644 --- a/src/main/java/net/floodlightcontroller/core/IOFSwitch.java +++ b/src/main/java/net/floodlightcontroller/core/IOFSwitch.java @@ -312,12 +312,4 @@ public interface IOFSwitch { */ public void flush(); - /** - * Get transaction id. for using in a message to be sent to the switch. - * The caller can use the transaction id as a key to maintain some - * meta data that can be retrieved based on the same message id. that - * would be returned in the response from the switch. - * @return transaction id to be passed in the sendStatsQuery() API. - */ - public int getXid(); } diff --git a/src/main/java/net/floodlightcontroller/core/internal/OFSwitchImpl.java b/src/main/java/net/floodlightcontroller/core/internal/OFSwitchImpl.java index 5f00d21d3fcde5241ccfdaf9bfed8ba424fd10ea..e23b2488191a37f95b29e314d7e4a569f7df86ab 100644 --- a/src/main/java/net/floodlightcontroller/core/internal/OFSwitchImpl.java +++ b/src/main/java/net/floodlightcontroller/core/internal/OFSwitchImpl.java @@ -293,11 +293,6 @@ public class OFSwitchImpl implements IOFSwitch { return this.transactionIdSource.incrementAndGet(); } - @Override - public int getXid() { - return getNextTransactionId(); - } - @Override public void sendStatsQuery(OFStatisticsRequest request, int xid, IOFMessageListener caller) throws IOException {