From d4121aee5eeab8328bb6a59ba0c2f16e2d3a72fa Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 7 Apr 2008 01:14:53 +0000 Subject: Library_State::set_timer is never called from within Botan, low hanging fruit for removal. --- include/libstate.h | 1 - src/libstate.cpp | 9 --------- 2 files changed, 10 deletions(-) diff --git a/include/libstate.h b/include/libstate.h index 49f1c1b0f..312d68873 100644 --- a/include/libstate.h +++ b/include/libstate.h @@ -55,7 +55,6 @@ class Library_State void add_entropy(EntropySource&, bool); u32bit seed_prng(bool, u32bit); - void set_timer(class Timer*); u64bit system_clock() const; class Config& config() const; diff --git a/src/libstate.cpp b/src/libstate.cpp index 7a742b468..12f017ed4 100644 --- a/src/libstate.cpp +++ b/src/libstate.cpp @@ -122,15 +122,6 @@ void Library_State::set_default_allocator(const std::string& type) const cached_default_allocator = 0; } -/************************************************* -* Set the high resolution clock implementation * -*************************************************/ -void Library_State::set_timer(Timer* new_timer) - { - delete timer; - timer = new_timer; - } - /************************************************* * Read a high resolution clock * *************************************************/ -- cgit v1.2.3