remove Checkpoint

This commit is contained in:
Glenn Maynard
2003-11-23 23:50:02 +00:00
parent 5cd3038c4c
commit f8eb93d95f
2 changed files with 0 additions and 26 deletions
-16
View File
@@ -373,19 +373,3 @@ void RageLog::UnmapLog(const CString &key)
LogMaps.erase(key);
UpdateMappedLog();
}
Checkpoint_::Checkpoint_(CString key_, int n, const char *fmt, ...)
{
key = ssprintf("%s:%i", key_.c_str(), n);
va_list va;
va_start(va, fmt);
LOG->MapLog( key, vssprintf(fmt, va) );
va_end(va);
}
Checkpoint_::~Checkpoint_()
{
LOG->UnmapLog( key );
}
-10
View File
@@ -49,15 +49,5 @@ private:
void AddToRecentLogs( CString buf );
};
/* Mapped log entry that's deleted on dtor. Note that this isn't extremely
* fast (like VDCHECKPOINT); don't use it in inner loops. */
struct Checkpoint_
{
CString key;
Checkpoint_(CString key, int n, const char *fmt, ...);
~Checkpoint_();
};
#define Checkpoint(t) Checkpoint_ CP_( __FILE__, __LINE__, t )
extern RageLog* LOG; // global and accessable from anywhere in our program
#endif