aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2023-03-06 13:17:43 -0800
committerMed Ismail Bennani <medismail.bennani@gmail.com>2023-03-06 13:17:43 -0800
commit20dbb29a1a94c60b556f8880ab841b150e83ab25 (patch)
treea51e3f55ca4408385bec8486808680dc705d06bf /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
parent480eb744982f2cecd9aa75ef32910fe023d8d4dc (diff)
downloadllvm-20dbb29a1a94c60b556f8880ab841b150e83ab25.zip
llvm-20dbb29a1a94c60b556f8880ab841b150e83ab25.tar.gz
llvm-20dbb29a1a94c60b556f8880ab841b150e83ab25.tar.bz2
Revert "[lldb] Move ScriptedProcess private state update to implementation"
This reverts commit 3c33d72e7fa83beb8a9b39fb3b8ecf4ee00c697d.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
index 31757a2..a015bd1 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
@@ -113,11 +113,6 @@ protected:
return {object};
}
- python::PythonObject Transform(bool arg) {
- // Boolean arguments need to be turned into python objects.
- return python::PythonBoolean(arg);
- }
-
python::PythonObject Transform(Status arg) {
return python::ToSWIGWrapper(arg);
}
@@ -146,15 +141,6 @@ protected:
original_arg = ExtractValueFromPythonObject<T>(transformed_arg, error);
}
- template <>
- void ReverseTransform(bool &original_arg,
- python::PythonObject transformed_arg, Status &error) {
- python::PythonBoolean boolean_arg = python::PythonBoolean(
- python::PyRefType::Borrowed, transformed_arg.get());
- if (boolean_arg.IsValid())
- original_arg = boolean_arg.GetValue();
- }
-
template <std::size_t... I, typename... Args>
auto TransformTuple(const std::tuple<Args...> &args,
std::index_sequence<I...>) {