summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-02-09 19:23:44 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-02-25 08:38:23 +0100
commit887edd6b7c53fde44eb9f9060e09db5cd981ba37 (patch)
tree783438c1b813dc04d0dda77182345fd324c46a3c /src/util
parent9eabaad5e0f3f20a6bcec0629342584c244a79bc (diff)
downloadsssd-887edd6b7c53fde44eb9f9060e09db5cd981ba37.tar.gz
sssd-887edd6b7c53fde44eb9f9060e09db5cd981ba37.tar.xz
sssd-887edd6b7c53fde44eb9f9060e09db5cd981ba37.zip
UTIL: Remove python wrapper sss_python_set_add
The function PySet_Add is available in python >= 2.6 Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/sss_python.c17
-rw-r--r--src/util/sss_python.h1
2 files changed, 0 insertions, 18 deletions
diff --git a/src/util/sss_python.c b/src/util/sss_python.c
index dad2a46d8..56850782a 100644
--- a/src/util/sss_python.c
+++ b/src/util/sss_python.c
@@ -21,23 +21,6 @@
#include "src/util/sss_python.h"
#include "config.h"
-int
-sss_python_set_add(PyObject *set, PyObject *key)
-{
-#ifdef HAVE_PYSET_ADD
- return PySet_Add(set, key);
-#else
- PyObject *pyret;
- int ret;
-
- pyret = PyObject_CallMethod(set, sss_py_const_p(char, "add"),
- sss_py_const_p(char, "O"), key);
- ret = (pyret == NULL) ? -1 : 0;
- Py_XDECREF(pyret);
- return ret;
-#endif
-}
-
bool
sss_python_set_check(PyObject *set)
{
diff --git a/src/util/sss_python.h b/src/util/sss_python.h
index 6851a64e8..1ff13c4ef 100644
--- a/src/util/sss_python.h
+++ b/src/util/sss_python.h
@@ -26,7 +26,6 @@
#endif
/* Wrappers providing the subset of C API for python's set objects we use */
-int sss_python_set_add(PyObject *set, PyObject *key);
bool sss_python_set_check(PyObject *set);
/* Unicode compatibility */