From fda589834c1c075ce5bf3881a88c46817aa73858 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 23 Dec 2004 12:02:52 +0000 Subject: [PATCH] Removed unused 'POP3header' class. --- src/messaging/POP3Message.cpp | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/messaging/POP3Message.cpp b/src/messaging/POP3Message.cpp index d072fdc8..a5b0aaff 100644 --- a/src/messaging/POP3Message.cpp +++ b/src/messaging/POP3Message.cpp @@ -28,19 +28,6 @@ namespace vmime { namespace messaging { - -class POP3header : public header -{ -public: - - POP3header(const string& str) - { - parse(str); - } -}; - - - POP3Message::POP3Message(POP3Folder* folder, const int num) : m_folder(folder), m_num(num), m_header(NULL) { @@ -53,7 +40,7 @@ POP3Message::~POP3Message() if (m_folder) m_folder->unregisterMessage(this); - delete dynamic_cast (m_header); + delete (m_header); } @@ -201,7 +188,14 @@ void POP3Message::fetch(POP3Folder* folder, const int options) string buffer; m_folder->m_store->readResponse(buffer, true); - m_header = new POP3header(buffer); + if (m_header != NULL) + { + delete (m_header); + m_header = NULL; + } + + m_header = new header(); + m_header->parse(buffer); } catch (exceptions::command_error& e) {