From 887edd6b7c53fde44eb9f9060e09db5cd981ba37 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 9 Feb 2015 19:23:44 +0100 Subject: UTIL: Remove python wrapper sss_python_set_add The function PySet_Add is available in python >= 2.6 Reviewed-by: Stephen Gallagher --- src/util/sss_python.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/util/sss_python.c') 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) { -- cgit