more fixing and cleanup

This commit is contained in:
DarthArgus
2015-10-13 20:49:42 -05:00
parent 0775701e48
commit b61c932498
10 changed files with 13 additions and 117 deletions
@@ -27,84 +27,6 @@
#include <ctime>
#ifdef _DEBUG
//#define ALWAYS_OVERWRITE // flag to always overwrite previous code
#endif
//==============================================================================
// subclass Perforce API class ClientUser in order to trap errors
//static const int SUBMIT_NO_FILE_ERR = 17; // need to add file before submitting
//
//class MyPerforceUser : public ClientUser
//{
//public:
// MyPerforceUser(void) : ClientUser(), m_errorOccurred(false) {}
// virtual ~MyPerforceUser() {}
// virtual void HandleError( Error *err )
// {
// if (err != NULL && err->Test())
// {
// m_errorOccurred = true;
// m_lastError = err->GetGeneric();
// // test for filtered errors
// for (size_t i = 0; i < m_filteredErrors.size(); ++i)
// {
// if (m_lastError == m_filteredErrors[i])
// return;
// }
// }
// ClientUser::HandleError(err);
// }
//
// bool errorOccurred(void) const
// {
// return m_errorOccurred;
// }
//
// int getLastError(void) const
// {
// return m_lastError;
// }
//
// void clearLastError(void)
// {
// m_errorOccurred = false;
// m_lastError = 0;
// }
//
// void addFilteredError(int error)
// {
// m_filteredErrors.push_back(error);
// }
//
// void clearFilteredErrors(void)
// {
// m_filteredErrors.clear();
// }
//
//private:
// bool m_errorOccurred;
// int m_lastError;
// std::vector<int> m_filteredErrors;
//};
//
//
////==============================================================================
//// subclass of the PerforceAPI StrBuf class, to workaround a bug
//// in the destructor. We can't fix the bug because it's an external library
//class StrBufFixed : public StrBuf
//{
//public:
// ~StrBufFixed()
// {
// delete buffer;
// StringInit();
// }
//};
//==============================================================================
// file variables