diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-13 03:30:39 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-13 03:30:39 +0000 |
commit | 3924d754e59683a3461e05e3c8d57a9d6ff347fb (patch) | |
tree | 8c0c185769a21c88dc42297cbb69add855e76342 /lldb/source/Interpreter/ScriptInterpreterPython.cpp | |
parent | 2cef13cf71de548dc59e12e2699ed89892206d6e (diff) | |
download | bcm5719-llvm-3924d754e59683a3461e05e3c8d57a9d6ff347fb.tar.gz bcm5719-llvm-3924d754e59683a3461e05e3c8d57a9d6ff347fb.zip |
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
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
-rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
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; } } } |