aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorMed Ismail Bennani <ismail@bennani.ma>2023-11-07 13:04:01 -0800
committerMed Ismail Bennani <ismail@bennani.ma>2023-11-07 13:04:01 -0800
commitc2ad9f8b607931430e86da7420493599c48e62a0 (patch)
tree4749d947f0a9115cabde34731e929b0394a7aafe /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parentc43e6274577c72874253a42395bbd23a6fa148d9 (diff)
downloadllvm-c2ad9f8b607931430e86da7420493599c48e62a0.zip
llvm-c2ad9f8b607931430e86da7420493599c48e62a0.tar.gz
llvm-c2ad9f8b607931430e86da7420493599c48e62a0.tar.bz2
Revert "[lldb] Check for abstract methods implementation in Scripted Plugin Objects (#71260)"
This reverts commit cc9ad72713405ef8f2468c7a714a137b4a3343ba since it breaks some tests upstream: https://lab.llvm.org/buildbot/#/builders/68/builds/63112 ******************** Failed Tests (4): lldb-api :: functionalities/gdb_remote_client/TestThreadSelectionBug.py lldb-api :: functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py lldb-api :: functionalities/plugins/python_os_plugin/stepping_plugin_threads/TestOSPluginStepping.py lldb-api :: functionalities/postmortem/mach-core/TestMachCore.py
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
index ea0a1cd..fe3438c 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
@@ -663,20 +663,6 @@ bool PythonDictionary::Check(PyObject *py_obj) {
return PyDict_Check(py_obj);
}
-bool PythonDictionary::HasKey(const llvm::Twine &key) const {
- if (!IsValid())
- return false;
-
- PythonString key_object(key.isSingleStringRef() ? key.getSingleStringRef()
- : key.str());
-
- if (int res = PyDict_Contains(m_py_obj, key_object.get()) > 0)
- return res;
-
- PyErr_Print();
- return false;
-}
-
uint32_t PythonDictionary::GetSize() const {
if (IsValid())
return PyDict_Size(m_py_obj);