From 5cc070ed4cef9f5fc03f8f4ae9a95b3089b9ceb7 Mon Sep 17 00:00:00 2001 From: Gregor Maier <gregor.maier@bigswitch.com> Date: Mon, 21 May 2012 18:26:26 -0700 Subject: [PATCH] Remove duplicate method in IOFSwitchImpl --- .../java/net/floodlightcontroller/core/IOFSwitch.java | 8 -------- .../floodlightcontroller/core/internal/OFSwitchImpl.java | 5 ----- 2 files changed, 13 deletions(-) diff --git a/src/main/java/net/floodlightcontroller/core/IOFSwitch.java b/src/main/java/net/floodlightcontroller/core/IOFSwitch.java index 65012c635..11212ea08 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 5f00d21d3..e23b24881 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 { -- GitLab