From 9eabaad5e0f3f20a6bcec0629342584c244a79bc Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 9 Feb 2015 19:19:55 +0100 Subject: UTIL: Remove python wrapper sss_python_set_new The function PySet_New is available in python >= 2.6 Reviewed-by: Stephen Gallagher --- src/util/sss_python.c | 10 ---------- src/util/sss_python.h | 1 - 2 files changed, 11 deletions(-) (limited to 'src/util') 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); -- cgit