aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/basewrapper.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-01-24 13:32:33 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-01-27 20:55:33 +0000
commitc3f7967ff3699be8d68e00f875d01f526061166d (patch)
treee83f3f08a239a10787ad6aa358e8ee28362310ed /sources/shiboken2/libshiboken/basewrapper.cpp
parent285f5ffeac9db359ef7775d3f3a4d59c4e844d4a (diff)
libshiboken: Code cleanup
Remove apparently unused/deprecated code. Change-Id: I566014bafdcbf0b3b46e9dc836c451c64d409511 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/libshiboken/basewrapper.cpp')
-rw-r--r--sources/shiboken2/libshiboken/basewrapper.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/sources/shiboken2/libshiboken/basewrapper.cpp b/sources/shiboken2/libshiboken/basewrapper.cpp
index d697d0732..d7d37971c 100644
--- a/sources/shiboken2/libshiboken/basewrapper.cpp
+++ b/sources/shiboken2/libshiboken/basewrapper.cpp
@@ -679,14 +679,6 @@ bool canCallConstructor(PyTypeObject* myType, PyTypeObject* ctorType)
return true;
}
-
-bool hasExternalCppConversions(SbkObjectType*) { return false; } // DEPRECATED.
-bool isExternalConvertible(SbkObjectType *, PyObject *) { return false; } // DEPRECATED.
-void setExternalCppConversionFunction(SbkObjectType*, ExtendedToCppFunc) {} // DEPRECATED.
-void setExternalIsConvertibleFunction(SbkObjectType*, ExtendedIsConvertibleFunc) {} // DEPRECATED.
-void* callExternalCppConversion(SbkObjectType*, PyObject*) { return 0; } // DEPRECATED.
-
-
bool hasCast(SbkObjectType* type)
{
return type->d->mi_specialcast != 0;
@@ -719,18 +711,6 @@ void setTypeDiscoveryFunctionV2(SbkObjectType* self, TypeDiscoveryFuncV2 func)
self->d->type_discovery = func;
}
-void setTypeDiscoveryFunction(SbkObjectType* self, TypeDiscoveryFunc func)
-{
- self->d->type_discovery = (TypeDiscoveryFuncV2)func;
-}
-
-TypeDiscoveryFunc getTypeDiscoveryFunction(SbkObjectType* self)
-{
- // This is an illegal cast because the return value is different,
- // but nobody ever used this function, so... =]
- return (TypeDiscoveryFunc)self->d->type_discovery;
-}
-
void copyMultimpleheritance(SbkObjectType* self, SbkObjectType* other)
{
self->d->mi_init = other->d->mi_init;
@@ -1053,11 +1033,6 @@ void makeValid(SbkObject* self)
}
}
-bool hasParentInfo(SbkObject* pyObj)
-{
- return pyObj->d->parentInfo != 0;
-}
-
void* cppPointer(SbkObject* pyObj, PyTypeObject* desiredType)
{
PyTypeObject* type = Py_TYPE(pyObj);