1
0
Fork 0

Remove unused log.cpp/log.h

This commit is contained in:
Nukem 2015-04-02 13:54:28 -04:00
parent c388a47b3e
commit 423ff91847
4 changed files with 1 additions and 47 deletions

View File

@ -140,7 +140,7 @@ void dbgsetisdetachedbyuser(bool b)
void dbgclearignoredexceptions()
{
std::vector<ExceptionRange>().swap(ignoredExceptionRange);
ignoredExceptionRange.clear();
}
void dbgaddignoredexception(ExceptionRange range)

View File

@ -1,13 +0,0 @@
#include "log.h"
#include "_global.h"
log::log(void)
{
}
log::~log(void)
{
GuiAddLogMessage(message.str().c_str());
}

View File

@ -1,27 +0,0 @@
#ifndef _LOG_H
#define _LOG_H
#include <sstream>
// a Qt's QDebug like message logging
// usage: "log() << "hi" << "there";
class log
{
public:
log();
~log();
public:
template<class T>
inline log & operator<<(const T & x)
{
// accumulate messages
message << x;
return *this;
}
private:
std::ostringstream message;
};
#endif _LOG_H

View File

@ -143,9 +143,6 @@
<ClCompile Include="debugger.cpp">
<Filter>Source Files\Debugger Core</Filter>
</ClCompile>
<ClCompile Include="log.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="stringutils.cpp">
<Filter>Source Files\Utilities</Filter>
</ClCompile>
@ -319,9 +316,6 @@
<ClInclude Include="handle.h">
<Filter>Header Files\Utilities</Filter>
</ClInclude>
<ClInclude Include="log.h">
<Filter>Header Files\Utilities</Filter>
</ClInclude>
<ClInclude Include="undocumented.h">
<Filter>Header Files\Debugger Core</Filter>
</ClInclude>