Removed an obsolete class

This commit is contained in:
Zane U. Ji 2013-10-26 16:23:22 +08:00
parent 1e7abc562e
commit 51cd9699c3
2 changed files with 0 additions and 60 deletions

View File

@ -1,40 +0,0 @@
#include "wx/wx.h"
#include "catalogresolverthread.h"
#include "wraplibxml.h"
#include <memory>
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<WrapLibxml> libxml ( new WrapLibxml ( false ) );
*mySystemIdPtr = libxml->lookupPublicId ( *myPublicIdPtr );
}
Exit();
return NULL;
}
void CatalogResolverThread::OnExit()
{
{
wxCriticalSectionLocker locker ( catalogResolverCriticalSection );
*myFinishedPtr = true;
}
}

View File

@ -1,20 +0,0 @@
#ifndef CATALOG_RESOLVER_THREAD_H
#define CATALOG_RESOLVER_THREAD_H
#include <utility>
#include <string>
#include <wx/thread.h>
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