summaryrefslogtreecommitdiff
path: root/seckey.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-12-14 12:53:44 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-12-14 12:53:44 +0000
commitf82124ec65fe13f9e0148283a0922c3b4bbc709a (patch)
tree5b75f1798bac12561c4e761ac827105a7ed59001 /seckey.h
parent1b1d014218165a904fe6ef99b95044f9e8d737ba (diff)
downloadcryptopp-f82124ec65fe13f9e0148283a0922c3b4bbc709a.tar.gz
remove old code
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@262 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'seckey.h')
-rw-r--r--seckey.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/seckey.h b/seckey.h
index 6fe56b8..73b6e30 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);
}