aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-04-07 01:00:05 +0000
committerlloyd <[email protected]>2008-04-07 01:00:05 +0000
commitac81da89ac0dca6a4d4cc6cf12de29bf66709e57 (patch)
treea681c5eba6110b96a987a18cbad60a0920e9c257 /include
parent4191064d79916508e531c4f28ddb244527f64d5c (diff)
The intent of this branch is to remove the global library state object
(Library_State, in libstate.{h,cpp}). It causes numerous 'interesting' problems with threads, etc, and the best solution here is to move to more or less an object-capability model, where the only objects that a piece of code can access are those which can be referenced through its arguments. First things first, remove the UI 'pulse' code. It is neither necessary nor sufficient for writing proper GUI/event driven code using Botan, has likely never been used in real code, and, given that, causes a distressing amount of overhead in terms of function calls made.
Diffstat (limited to 'include')
-rw-r--r--include/libstate.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/libstate.h b/include/libstate.h
index 297e39479..49f1c1b0f 100644
--- a/include/libstate.h
+++ b/include/libstate.h
@@ -42,13 +42,6 @@ class Library_State
};
friend class Engine_Iterator;
- class UI
- {
- public:
- virtual void pulse(Pulse_Type) {}
- virtual ~UI() {}
- };
-
Allocator* get_allocator(const std::string& = "") const;
void add_allocator(Allocator*);
void set_default_allocator(const std::string&) const;
@@ -72,9 +65,6 @@ class Library_State
void set_x509_state(class X509_GlobalState*);
class X509_GlobalState& x509_state();
- void pulse(Pulse_Type) const;
- void set_ui(UI*);
-
void set_transcoder(class Charset_Transcoder*);
std::string transcode(const std::string,
Character_Set, Character_Set) const;
@@ -96,7 +86,6 @@ class Library_State
std::map<std::string, Allocator*> alloc_factory;
mutable Allocator* cached_default_allocator;
- UI* ui;
class Charset_Transcoder* transcoder;
RandomNumberGenerator* rng;
std::vector<Allocator*> allocators;