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/e4865439
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/e4865439
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/e4865439

Branch: refs/heads/master
Commit: e4865439d057beadd432248666208f71788c6513
Parents: f8a6791
Author: Leif Hedstrom <[email protected]>
Authored: Tue Mar 26 08:58:34 2013 -0600
Committer: Leif Hedstrom <[email protected]>
Committed: Tue Apr 2 13:52:33 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/e4865439/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/e4865439/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()
 {

Reply via email to