aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-11-03 18:04:28 +0000
committerlloyd <[email protected]>2010-11-03 18:04:28 +0000
commit23836c690363a0fbdf39e2c347b87eed3f20e089 (patch)
tree670208a0fee798d54ad03bf8a4658cfa0fef8ff0 /src
parent832da89700302a0d837ad4483608193bc8fa31fe (diff)
Remove needless destructors
Diffstat (limited to 'src')
-rw-r--r--src/hash/mdx_hash/mdx_hash.h2
-rw-r--r--src/stream/salsa20/salsa20.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/hash/mdx_hash/mdx_hash.h b/src/hash/mdx_hash/mdx_hash.h
index 9e32ac003..ed3381605 100644
--- a/src/hash/mdx_hash/mdx_hash.h
+++ b/src/hash/mdx_hash/mdx_hash.h
@@ -30,8 +30,6 @@ class BOTAN_DLL MDx_HashFunction : public HashFunction
size_t counter_size = 8);
size_t hash_block_size() const { return buffer.size(); }
-
- virtual ~MDx_HashFunction() {}
protected:
void add_data(const byte input[], size_t length);
void final_result(byte output[]);
diff --git a/src/stream/salsa20/salsa20.h b/src/stream/salsa20/salsa20.h
index d84aa9cdc..d9645015f 100644
--- a/src/stream/salsa20/salsa20.h
+++ b/src/stream/salsa20/salsa20.h
@@ -35,8 +35,6 @@ class BOTAN_DLL Salsa20 : public StreamCipher
StreamCipher* clone() const { return new Salsa20; }
Salsa20() : state(16), buffer(64), position(0) {}
-
- ~Salsa20() { clear(); }
private:
void key_schedule(const byte key[], size_t key_len);