Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/libshiboken/bindingmanager.cpp')
-rw-r--r--sources/shiboken6/libshiboken/bindingmanager.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/sources/shiboken6/libshiboken/bindingmanager.cpp b/sources/shiboken6/libshiboken/bindingmanager.cpp
index 3652e4a4a..25cc5c00a 100644
--- a/sources/shiboken6/libshiboken/bindingmanager.cpp
+++ b/sources/shiboken6/libshiboken/bindingmanager.cpp
@@ -366,23 +366,8 @@ SbkObject *BindingManager::retrieveWrapper(const void *cptr, PyTypeObject *typeO
return it != m_d->wrapperMapper.cend() ? it->second : nullptr;
}
-PyObject *BindingManager::getOverride(SbkObject *wrapper, PyObject *nameCache[],
- const char *methodName)
-{
- // PYSIDE-1626: Touch the type to initiate switching early.
- SbkObjectType_UpdateFeature(Py_TYPE(wrapper));
-
- int flag = currentSelectId(Py_TYPE(wrapper));
- int propFlag = isdigit(methodName[0]) ? methodName[0] - '0' : 0;
- bool is_snake = flag & 0x01;
- PyObject *pyMethodName = nameCache[is_snake]; // borrowed
- if (pyMethodName == nullptr) {
- if (propFlag)
- methodName += 2; // skip the propFlag and ':'
- pyMethodName = Shiboken::String::getSnakeCaseName(methodName, is_snake);
- nameCache[is_snake] = pyMethodName;
- }
-
+PyObject *BindingManager::getOverride(SbkObject *wrapper, PyObject *pyMethodName)
+{
auto *obWrapper = reinterpret_cast<PyObject *>(wrapper);
auto *wrapper_dict = SbkObject_GetDict_NoRef(obWrapper);
if (PyObject *method = PyDict_GetItem(wrapper_dict, pyMethodName)) {