summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2012-10-09 16:34:35 -0700
committerAndy Grover <agrover@redhat.com>2012-10-09 17:15:08 -0700
commit58e6fead772522c61e925dbce44a68014a19521b (patch)
tree3180dfa36097765962d51725644b43ec4f8599db
parenta32d5f2f30a60c549c05d35a5cb8cfab89d1c102 (diff)
downloadlvm2-58e6fead772522c61e925dbce44a68014a19521b.tar.gz
lvm2-58e6fead772522c61e925dbce44a68014a19521b.tar.xz
lvm2-58e6fead772522c61e925dbce44a68014a19521b.zip
python-lvm: Remove percent_to_float
Not supported in liblvm. Signed-off-by: Andy Grover <agrover@redhat.com>
-rw-r--r--liblvm/python/liblvm.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/liblvm/python/liblvm.c b/liblvm/python/liblvm.c
index 309486d9..fb4f79e9 100644
--- a/liblvm/python/liblvm.c
+++ b/liblvm/python/liblvm.c
@@ -150,21 +150,6 @@ liblvm_lvm_list_vg_uuids(void)
}
static PyObject *
-liblvm_lvm_percent_to_float(PyObject *arg)
-{
- double converted;
- int percent;
-
- LVM_VALID();
-
- if (!PyArg_ParseTuple(arg, "i", &percent))
- return NULL;
-
- converted = lvm_percent_to_float(percent);
- return Py_BuildValue("d", converted);
-}
-
-static PyObject *
liblvm_lvm_vgname_from_pvid(PyObject *self, PyObject *arg)
{
const char *pvid;
@@ -1453,7 +1438,6 @@ static PyMethodDef Liblvm_methods[] = {
{ "scan", (PyCFunction)liblvm_lvm_scan, METH_NOARGS },
{ "listVgNames", (PyCFunction)liblvm_lvm_list_vg_names, METH_NOARGS },
{ "listVgUuids", (PyCFunction)liblvm_lvm_list_vg_uuids, METH_NOARGS },
- { "percentToFloat", (PyCFunction)liblvm_lvm_percent_to_float, METH_VARARGS },
{ "vgNameFromPvid", (PyCFunction)liblvm_lvm_vgname_from_pvid, METH_VARARGS },
{ "vgNameFromDevice", (PyCFunction)liblvm_lvm_vgname_from_device, METH_VARARGS },
{ NULL, NULL} /* sentinel */