From b30233340630a155a2403a4d3e3259d97d617098 Mon Sep 17 00:00:00 2001 From: HÃ¥vard Pettersen Date: Tue, 4 Sep 2018 09:59:21 +0000 Subject: remove unused function of questionable nature --- fnet/src/vespa/fnet/connection.cpp | 8 -------- fnet/src/vespa/fnet/connection.h | 13 ------------- 2 files changed, 21 deletions(-) (limited to 'fnet/src') diff --git a/fnet/src/vespa/fnet/connection.cpp b/fnet/src/vespa/fnet/connection.cpp index 38e5d79c6a2..cf9d8636444 100644 --- a/fnet/src/vespa/fnet/connection.cpp +++ b/fnet/src/vespa/fnet/connection.cpp @@ -659,14 +659,6 @@ FNET_Connection::PostPacket(FNET_Packet *packet, uint32_t chid) } -uint32_t -FNET_Connection::GetQueueLen() -{ - std::lock_guard guard(_ioc_lock); - return _queue.GetPacketCnt_NoLock() + _myQueue.GetPacketCnt_NoLock(); -} - - void FNET_Connection::Sync() { diff --git a/fnet/src/vespa/fnet/connection.h b/fnet/src/vespa/fnet/connection.h index 2a87b145f1b..8e275d68b18 100644 --- a/fnet/src/vespa/fnet/connection.h +++ b/fnet/src/vespa/fnet/connection.h @@ -446,19 +446,6 @@ public: bool PostPacket(FNET_Packet *packet, uint32_t chid); - /** - * Obtain the number of packets located in the output queue for this - * connection. Note that this number is volatile and should only be - * used as an estimate. Also note that since a queue latching - * strategy is used, this method requires a mutex lock/unlock and is - * therefore not as cheap as may be expected. - * - * @return number of packets currently located in the output queue - * for this connection. - **/ - uint32_t GetQueueLen(); - - /** * Sync with this connection. When this method is invoked it will * block until all packets currently posted on this connection is -- cgit v1.2.3