aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-01-31 16:34:39 +0000
committerIan Campbell <ian.campbell@citrix.com>2012-01-31 16:34:39 +0000
commitcf3b8d958cd16ced7cdf5674406482efade3db29 (patch)
treecf739889c4f37ea96fd4de63fdcc98f2a603d7e9 /tools/python
parent8137e3ea1a0ea66181680b9bc4f1865c0edb81b5 (diff)
downloadxen-cf3b8d958cd16ced7cdf5674406482efade3db29.tar.gz
xen-cf3b8d958cd16ced7cdf5674406482efade3db29.tar.bz2
xen-cf3b8d958cd16ced7cdf5674406482efade3db29.zip
libxl: drop libxl_cpuarray -- topology was the only user.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/python')
-rw-r--r--tools/python/xen/lowlevel/xl/xl.c24
1 files changed, 0 insertions, 24 deletions
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);