summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-02-09 19:19:55 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-02-25 08:38:20 +0100
commit9eabaad5e0f3f20a6bcec0629342584c244a79bc (patch)
tree64452cb16adc499902cabd2ceb7b3ae3d885096d /src/util
parentd6c3de740c7bed8b007805d6a313220d8d974ee5 (diff)
downloadsssd-9eabaad5e0f3f20a6bcec0629342584c244a79bc.tar.gz
sssd-9eabaad5e0f3f20a6bcec0629342584c244a79bc.tar.xz
sssd-9eabaad5e0f3f20a6bcec0629342584c244a79bc.zip
UTIL: Remove python wrapper sss_python_set_new
The function PySet_New 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.c10
-rw-r--r--src/util/sss_python.h1
2 files changed, 0 insertions, 11 deletions
diff --git a/src/util/sss_python.c b/src/util/sss_python.c
index 19717a55c..dad2a46d8 100644
--- a/src/util/sss_python.c
+++ b/src/util/sss_python.c
@@ -21,16 +21,6 @@
#include "src/util/sss_python.h"
#include "config.h"
-PyObject *
-sss_python_set_new(void)
-{
-#ifdef HAVE_PYSET_NEW
- return PySet_New(NULL);
-#else
- return PyObject_CallObject((PyObject *) &PySet_Type, NULL);
-#endif
-}
-
int
sss_python_set_add(PyObject *set, PyObject *key)
{
diff --git a/src/util/sss_python.h b/src/util/sss_python.h
index cf8c84848..6851a64e8 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 */
-PyObject *sss_python_set_new(void);
int sss_python_set_add(PyObject *set, PyObject *key);
bool sss_python_set_check(PyObject *set);