From 03f54a866eb4f9f8acbcfbc94db366b0d9787ef9 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 14 Dec 2006 12:53:44 +0000 Subject: [PATCH] remove old code --- seckey.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/seckey.h b/seckey.h index 6fe56b89..73b6e302 100644 --- a/seckey.h +++ b/seckey.h @@ -45,14 +45,9 @@ public: static unsigned int StaticGetDefaultRounds(size_t keylength) {return DEFAULT_ROUNDS;} protected: - static inline void AssertValidRounds(unsigned int rounds) - { - assert(rounds >= (unsigned int)MIN_ROUNDS && rounds <= (unsigned int)MAX_ROUNDS); - } - inline void ThrowIfInvalidRounds(int rounds, const Algorithm *alg) { - if (rounds < (int)MIN_ROUNDS || rounds > (int)MAX_ROUNDS) + if (rounds < MIN_ROUNDS || rounds > MAX_ROUNDS) throw InvalidRounds(alg->AlgorithmName(), rounds); }