From f8eb93d95fee75b3f0854532402eadfab9e5cdd6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 23 Nov 2003 23:50:02 +0000 Subject: [PATCH] remove Checkpoint --- stepmania/src/RageLog.cpp | 16 ---------------- stepmania/src/RageLog.h | 10 ---------- 2 files changed, 26 deletions(-) diff --git a/stepmania/src/RageLog.cpp b/stepmania/src/RageLog.cpp index a058477074..935c2cd47e 100644 --- a/stepmania/src/RageLog.cpp +++ b/stepmania/src/RageLog.cpp @@ -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 ); -} - diff --git a/stepmania/src/RageLog.h b/stepmania/src/RageLog.h index 1527b4019b..a447f8380a 100644 --- a/stepmania/src/RageLog.h +++ b/stepmania/src/RageLog.h @@ -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