TS-1067 Remove get_allocatedBandwidth()
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/c49295c2 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/c49295c2 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/c49295c2 Branch: refs/heads/3.3.x Commit: c49295c24c218ca3e3f36dfa51eba3aacbc1a318 Parents: dc7c12f Author: Leif Hedstrom <zw...@apache.org> Authored: Tue Mar 26 08:58:34 2013 -0600 Committer: Leif Hedstrom <zw...@apache.org> Committed: Mon Apr 15 14:45:43 2013 -0600 ---------------------------------------------------------------------- iocore/net/I_UDPConnection.h | 2 -- iocore/net/P_UDPConnection.h | 10 ---------- 2 files changed, 0 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c49295c2/iocore/net/I_UDPConnection.h ---------------------------------------------------------------------- diff --git a/iocore/net/I_UDPConnection.h b/iocore/net/I_UDPConnection.h index 045f376..91fe2b3 100644 --- a/iocore/net/I_UDPConnection.h +++ b/iocore/net/I_UDPConnection.h @@ -55,8 +55,6 @@ public: void destroy(); int shouldDestroy(); - /* Returns the b/w allocated to this UDP connection in Mbps */ - double get_allocatedBandwidth(); /** <p> <b>Callbacks:</b><br> http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c49295c2/iocore/net/P_UDPConnection.h ---------------------------------------------------------------------- diff --git a/iocore/net/P_UDPConnection.h b/iocore/net/P_UDPConnection.h index 6c1c40d..aacea6d 100644 --- a/iocore/net/P_UDPConnection.h +++ b/iocore/net/P_UDPConnection.h @@ -97,9 +97,6 @@ UDPConnectionInternal::UDPConnectionInternal() TS_INLINE UDPConnectionInternal::~UDPConnectionInternal() { - // TODO: This is not necessary, and should be removed with the - // elimination of UDP bandwidth limiting (used by long since - // removed UDP protocols). See bug TS-1067. continuation = NULL; mutex = NULL; } @@ -127,13 +124,6 @@ UDPConnection::getBinding(struct sockaddr *s) return p->binding_valid; } -// return the b/w allocated to this UDPConnection in Mbps -TS_INLINE double -UDPConnection::get_allocatedBandwidth() -{ - return (((UDPConnectionInternal *) this)->flowRateBps * 8.0) / (1024.0 * 1024.0); -} - TS_INLINE void UDPConnection::destroy() {