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:
Saleem Abdulrasool
2014-06-13 03:30:39 +00:00
parent 2cef13cf71
commit 3924d754e5
5 changed files with 5 additions and 34 deletions

View File

@@ -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;
}
}
}