aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/libpyside/globalreceiverv2.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-02 15:50:55 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-03 08:22:13 +0000
commita5848518433a7adf1ca83b19441a1abe6734d8a9 (patch)
treec88f23cebd3636399f4ee1f31acd8c3e6d561a40 /sources/pyside2/libpyside/globalreceiverv2.cpp
parent9dd6617b0228d5aa35bd7747560161a3f28c9c47 (diff)
Remove Python2 from C++ code
Task-number: PYSIDE-1339 Task-number: PYSIDE-904 Change-Id: I7e4ffaeabb2ac8a5ffe165d43b3475a7e5d57447 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/libpyside/globalreceiverv2.cpp')
-rw-r--r--sources/pyside2/libpyside/globalreceiverv2.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/sources/pyside2/libpyside/globalreceiverv2.cpp b/sources/pyside2/libpyside/globalreceiverv2.cpp
index 0377f7697..b1e75ad8e 100644
--- a/sources/pyside2/libpyside/globalreceiverv2.cpp
+++ b/sources/pyside2/libpyside/globalreceiverv2.cpp
@@ -100,9 +100,6 @@ DynamicSlotDataV2::DynamicSlotDataV2(PyObject *callback, GlobalReceiverV2 *paren
//Can not store calback pointe because this will be destroyed at the end of the scope
//To avoid increment intance reference keep the callback information
m_callback = PyMethod_GET_FUNCTION(callback);
-#ifndef IS_PY3K
- m_pyClass = PyMethod_GET_CLASS(callback);
-#endif
m_pythonSelf = PyMethod_GET_SELF(callback);
//monitor class from method lifetime
@@ -140,11 +137,7 @@ PyObject *DynamicSlotDataV2::callback()
//create a callback based on method data
if (m_isMethod)
-#ifdef IS_PY3K
callback = PyMethod_New(m_callback, m_pythonSelf);
-#else
- callback = PyMethod_New(m_callback, m_pythonSelf, m_pyClass);
-#endif
else
Py_INCREF(callback);