From 3924d754e59683a3461e05e3c8d57a9d6ff347fb Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 13 Jun 2014 03:30:39 +0000 Subject: Remove unused variables Address the 'variable set but not used' warning from GCC. In some cases a few additional calls were removed where there should be no visible side effects of the calls (i.e. should not effect any cached state). llvm-svn: 210879 --- lldb/source/Interpreter/ScriptInterpreterPython.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp') diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index da84353fed4..b0a889e06a7 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -1018,7 +1018,6 @@ ScriptInterpreterPython::ExecuteMultipleLines (const char *in_string, const Exec ScriptInterpreterPython::Locker::AcquireLock | ScriptInterpreterPython::Locker::InitSession | (options.GetSetLLDBGlobals() ? ScriptInterpreterPython::Locker::InitGlobals : 0), ScriptInterpreterPython::Locker::FreeAcquiredLock | ScriptInterpreterPython::Locker::TearDownSession); - bool success = false; PythonObject return_value; PythonObject &main_module = GetMainModule (); PythonDictionary globals (PyModule_GetDict(main_module.get())); @@ -1052,8 +1051,6 @@ ScriptInterpreterPython::ExecuteMultipleLines (const char *in_string, const Exec //PythonInputReaderManager py_input(options.GetEnableIO() ? this : NULL); return_value.Reset(PyEval_EvalCode (compiled_code, globals.get(), locals.get())); } - if (return_value) - success = true; } } } -- cgit v1.2.3