[asterisk-scf-commits] asterisk-scf/release/bridging.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Feb 7 13:00:35 CST 2012


branch "master" has been updated
       via  fff860e3c1b6e62994bfcc9eefbfe0c167316874 (commit)
      from  dc372a69a62dc2cff4be7fccd5f34e7d4e40b1f7 (commit)

Summary of changes:
 src/ServiceUtil.h |   46 ----------------------------------------------
 1 files changed, 0 insertions(+), 46 deletions(-)


- Log -----------------------------------------------------------------
commit fff860e3c1b6e62994bfcc9eefbfe0c167316874
Author: Brent Eagles <beagles at digium.com>
Date:   Tue Feb 7 15:28:32 2012 -0330

    Remove duplicate/obsoleted class.

diff --git a/src/ServiceUtil.h b/src/ServiceUtil.h
index 17f6b1e..b3634d5 100644
--- a/src/ServiceUtil.h
+++ b/src/ServiceUtil.h
@@ -142,52 +142,6 @@ private:
     IceUtil::Time mRetryInterval;
     bool mStopped;
 };
-
-//
-// TODO: this should be refactored into a utility library.
-//
-class RetryPolicy
-{
-public:
-    //
-    // The constructor for those that want to specify intervals in milliseconds.
-    //
-    RetryPolicy(size_t maxRetries, size_t intervalInMilliseconds) :
-        mMaxRetries(maxRetries),
-        mRetryInterval(IceUtil::Time::milliSeconds(intervalInMilliseconds)),
-        mCounter(0)
-    {
-    }
-
-    //
-    // The constructor for those that want to specify intervals in whatever
-    // unit they like so long as it is converted to IceUtil::Time.
-    //
-    RetryPolicy(size_t maxRetries, const IceUtil::Time& interval) :
-        mMaxRetries(maxRetries),
-        mRetryInterval(interval),
-        mCounter(0)
-    {
-    }
-
-    bool canRetry()
-    {
-        return mCounter < mMaxRetries;
-    }
-
-    bool retry()
-    {
-        IceUtil::ThreadControl::sleep(mRetryInterval);
-        ++mCounter;
-        return canRetry();
-    }
-
-private:
-    size_t mMaxRetries;
-    IceUtil::Time mRetryInterval;
-    size_t mCounter;
-};
-
 //
 // Helper template to try and create a one way proxy. If the endpoint configuration on the proxy will not allow
 // oneways, the original proxy is returned.

-----------------------------------------------------------------------


-- 
asterisk-scf/release/bridging.git



More information about the asterisk-scf-commits mailing list