From 2e69872b119a0a06f577b1fb7cd5f02530591962 Mon Sep 17 00:00:00 2001 From: elexis Date: Thu, 3 Dec 2015 03:12:43 +0000 Subject: [PATCH] Remove debug parser from replay menu. Refs #3440 This was SVN commit r17367. --- source/ps/VisualReplay.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/source/ps/VisualReplay.cpp b/source/ps/VisualReplay.cpp index 9d0c7f8bc8..af7dba164d 100644 --- a/source/ps/VisualReplay.cpp +++ b/source/ps/VisualReplay.cpp @@ -36,11 +36,6 @@ */ const u8 minimumReplayDuration = 3; -/** - * Allows quick debugging of potential platform-dependent file-reading bugs. - */ -const bool debugParser = false; - OsPath VisualReplay::GetDirectoryName() { return OsPath(psLogDir() / L"sim_log"); @@ -141,10 +136,6 @@ inline int getReplayDuration(std::istream *replayStream, const CStr& fileName, c if (currentPosition < 1) return -1; - if (debugParser) - // TODO: throws a compiler warning on some systems - debug_printf("At position %i of %lu after %i lines reads.\n", currentPosition, fileSize, linesRead); - if (!replayStream->good()) { LOGERROR("Read error when determining replay duration at %i of %llu in %s", currentPosition - 2, fileSize, fileName.c_str()); @@ -172,9 +163,6 @@ JS::Value VisualReplay::LoadReplayData(ScriptInterface& scriptInterface, OsPath& // The directory argument must not be constant, otherwise concatenating will fail const OsPath replayFile = GetDirectoryName() / directory / L"commands.txt"; - if (debugParser) - debug_printf("Opening %s\n", replayFile.string8().c_str()); - if (!FileExists(replayFile)) return JSVAL_NULL;