summaryrefslogtreecommitdiff
path: root/seckey.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2006-12-14 12:53:44 +0000
committerweidai <weidai11@users.noreply.github.com>2006-12-14 12:53:44 +0000
commit03f54a866eb4f9f8acbcfbc94db366b0d9787ef9 (patch)
tree5b75f1798bac12561c4e761ac827105a7ed59001 /seckey.h
parent492b77b449a3d10d0ed8a930c73926324ec8a68a (diff)
downloadcryptopp-git-03f54a866eb4f9f8acbcfbc94db366b0d9787ef9.tar.gz
remove old code
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 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);
}