From cf3b8d958cd16ced7cdf5674406482efade3db29 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Tue, 31 Jan 2012 16:34:39 +0000 Subject: libxl: drop libxl_cpuarray -- topology was the only user. Signed-off-by: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/python/xen/lowlevel/xl/xl.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'tools/python') diff --git a/tools/python/xen/lowlevel/xl/xl.c b/tools/python/xen/lowlevel/xl/xl.c index c916e2f54f..625891a6bc 100644 --- a/tools/python/xen/lowlevel/xl/xl.c +++ b/tools/python/xen/lowlevel/xl/xl.c @@ -227,11 +227,6 @@ int attrib__libxl_cpumap_set(PyObject *v, libxl_cpumap *pptr) return 0; } -int attrib__libxl_cpuarray_set(PyObject *v, libxl_cpuarray *pptr) -{ - return -1; -} - int attrib__libxl_file_reference_set(PyObject *v, libxl_file_reference *pptr) { return genwrap__string_set(v, &pptr->path); @@ -304,25 +299,6 @@ PyObject *attrib__libxl_cpumap_get(libxl_cpumap *pptr) return cpulist; } -PyObject *attrib__libxl_cpuarray_get(libxl_cpuarray *pptr) -{ - PyObject *list = NULL; - int i; - - list = PyList_New(0); - for (i = 0; i < pptr->entries; i++) { - if (pptr->array[i] == LIBXL_CPUARRAY_INVALID_ENTRY) { - PyList_Append(list, Py_None); - } else { - PyObject* pyint = PyInt_FromLong(pptr->array[i]); - - PyList_Append(list, pyint); - Py_DECREF(pyint); - } - } - return list; -} - PyObject *attrib__libxl_file_reference_get(libxl_file_reference *pptr) { return genwrap__string_get(&pptr->path); -- cgit v1.2.3