diff options
author | lloyd <[email protected]> | 2008-04-07 01:51:28 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-04-07 01:51:28 +0000 |
commit | a2e45efa784ec1a75e7a6ec06d9a4f02461216aa (patch) | |
tree | 7df57770384c9214794ae6774b15a1334b88a982 /src/libstate.cpp | |
parent | a48d895cf5e6874f4ae60c803bda17d62edb7a7b (diff) |
Remove Charset_Transcoder; hardwire UTF-8/Latin-1 conversions into charset.cpp
Diffstat (limited to 'src/libstate.cpp')
-rw-r--r-- | src/libstate.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/libstate.cpp b/src/libstate.cpp index 21701cfa8..7d3b633cd 100644 --- a/src/libstate.cpp +++ b/src/libstate.cpp @@ -216,29 +216,6 @@ void Library_State::add_engine(Engine* engine) } /************************************************* -* Set the character set transcoder object * -*************************************************/ -void Library_State::set_transcoder(class Charset_Transcoder* transcoder) - { - if(this->transcoder) - delete this->transcoder; - this->transcoder = transcoder; - } - -/************************************************* -* Transcode a string from one charset to another * -*************************************************/ -std::string Library_State::transcode(const std::string str, - Character_Set to, - Character_Set from) const - { - if(!transcoder) - throw Invalid_State("Library_State::transcode: No transcoder set"); - - return transcoder->transcode(str, to, from); - } - -/************************************************* * Set the X509 global state class * *************************************************/ void Library_State::set_x509_state(X509_GlobalState* new_x509_state_obj) @@ -293,8 +270,6 @@ void Library_State::initialize(const InitializerOptions& args, cached_default_allocator = 0; x509_state_obj = 0; - transcoder = modules.transcoder(); - std::vector<Allocator*> mod_allocs = modules.allocators(); for(u32bit j = 0; j != mod_allocs.size(); ++j) add_allocator(mod_allocs[j]); @@ -343,7 +318,6 @@ Library_State::Library_State() config_obj = 0; x509_state_obj = 0; - transcoder = 0; rng = 0; cached_default_allocator = 0; } @@ -354,7 +328,6 @@ Library_State::Library_State() Library_State::~Library_State() { delete x509_state_obj; - delete transcoder; delete rng; delete config_obj; |