aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-05-17 16:31:24 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:15:23 -0300
commit95f7d0a2c1a417e81bf2cab00075e28a8d22660f (patch)
tree1cc3855ff831cb1fb72574ea9506b7f4a3b86c8b /libshiboken
parent9c19e3c9d25e8d1b70e4bb578c381f45af621c91 (diff)
Removed unused variables/functions.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken')
-rw-r--r--libshiboken/basewrapper.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index 3d65071da..032bf3c68 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -319,7 +319,6 @@ PyObject* SbkObjectTpNew(PyTypeObject* subtype, PyObject*, PyObject*)
namespace Shiboken
{
-static void incRefPyObject(PyObject* pyObj);
static void decRefPyObjectList(const std::list<SbkObject*> &pyObj);
void walkThroughClassHierarchy(PyTypeObject* currentType, HierarchyVisitor* visitor)
@@ -475,17 +474,6 @@ std::list<SbkObject*> splitPyObject(PyObject* pyObj)
return result;
}
-static void incRefPyObject(PyObject* pyObj)
-{
- if (PySequence_Check(pyObj)) {
- for(int i = 0, i_max = PySequence_Size(pyObj); i < i_max; i++) {
- PySequence_GetItem(pyObj, i);
- }
- } else {
- Py_INCREF(pyObj);
- }
-}
-
static void decRefPyObjectList(const std::list<SbkObject*>& lst)
{
std::list<SbkObject*>::const_iterator iter = lst.begin();