From 51cd9699c36028c524b02b3171c641743bcc5c86 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Sat, 26 Oct 2013 16:23:22 +0800 Subject: [PATCH] Removed an obsolete class --- src/catalogresolverthread.cpp | 40 ----------------------------------- src/catalogresolverthread.h | 20 ------------------ 2 files changed, 60 deletions(-) delete mode 100644 src/catalogresolverthread.cpp delete mode 100644 src/catalogresolverthread.h diff --git a/src/catalogresolverthread.cpp b/src/catalogresolverthread.cpp deleted file mode 100644 index 0e11e34..0000000 --- a/src/catalogresolverthread.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include "wx/wx.h" -#include "catalogresolverthread.h" -#include "wraplibxml.h" -#include - -wxCriticalSection catalogResolverCriticalSection; - -CatalogResolverThread::CatalogResolverThread ( - std::string *publicId, - std::string *systemId, - bool *finished, - const std::string& catalogPath ) : wxThread()//( wxTHREAD_JOINABLE ) -{ - myPublicIdPtr = publicId; - mySystemIdPtr = systemId; - myFinishedPtr = finished; - myCatalogPath = catalogPath; - - *myFinishedPtr = false; -} - -void *CatalogResolverThread::Entry() -{ - { - wxCriticalSectionLocker locker ( catalogResolverCriticalSection ); - - std::auto_ptr libxml ( new WrapLibxml ( false ) ); - *mySystemIdPtr = libxml->lookupPublicId ( *myPublicIdPtr ); - } - Exit(); - return NULL; -} - -void CatalogResolverThread::OnExit() -{ - { - wxCriticalSectionLocker locker ( catalogResolverCriticalSection ); - *myFinishedPtr = true; - } -} diff --git a/src/catalogresolverthread.h b/src/catalogresolverthread.h deleted file mode 100644 index 1b1a8f8..0000000 --- a/src/catalogresolverthread.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef CATALOG_RESOLVER_THREAD_H -#define CATALOG_RESOLVER_THREAD_H - -#include -#include -#include - -class CatalogResolverThread : public wxThread -{ -public: - CatalogResolverThread ( std::string *publicId, std::string *systemId, bool *finished, const std::string& catalogPath ); - virtual void *Entry(); - virtual void OnExit(); -private: - std::string *myPublicIdPtr, *mySystemIdPtr; - std::string myCatalogPath; - bool *myFinishedPtr; -}; - -#endif