diff options
author | Håvard Pettersen <havardpe@oath.com> | 2018-09-04 09:59:21 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2018-09-04 09:59:21 +0000 |
commit | b30233340630a155a2403a4d3e3259d97d617098 (patch) | |
tree | 8cef88a0d19bc5db87b5c28294fb75924e35a586 /fnet | |
parent | 5b39a1ea696cecfe1428a1ae1b732aa3d63c3648 (diff) |
remove unused function of questionable nature
Diffstat (limited to 'fnet')
-rw-r--r-- | fnet/src/vespa/fnet/connection.cpp | 8 | ||||
-rw-r--r-- | fnet/src/vespa/fnet/connection.h | 13 |
2 files changed, 0 insertions, 21 deletions
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<std::mutex> 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 @@ -447,19 +447,6 @@ public: /** - * 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 * encoded into the output buffer. Also, the amount of data in the |