From 7853c1cfcc1cbabaad5edd7c2d9e30bdc74751fa Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Wed, 5 Jan 2022 08:54:54 -0800 Subject: [PATCH] Debugger: Cleanup --- source/Debugger/Debug.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/source/Debugger/Debug.cpp b/source/Debugger/Debug.cpp index 2a768f13..f898751c 100644 --- a/source/Debugger/Debug.cpp +++ b/source/Debugger/Debug.cpp @@ -3783,13 +3783,8 @@ Update_t CmdConfigSetDebugDir (int nArgs) } else // Relative { - std::string SAME_DIR( "." ); - SAME_DIR += PATH_SEPARATOR; - - std::string UP_DIR( ".."); - UP_DIR += PATH_SEPARATOR; - - size_t nNewPathLen = strlen( g_aArgs[1].sArg ); + std::string SAME_DIR( "." ); SAME_DIR += PATH_SEPARATOR; + std::string UP_DIR ( ".."); UP_DIR += PATH_SEPARATOR; std::string sNewPath( g_aArgs[1].sArg ); // if new path doesn't have a trailing slash, append one