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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user