1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

talloc: remove unused variables

found by the IRIX compiler

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jul  5 23:50:54 CEST 2012 on sn-devel-104
This commit is contained in:
Björn Jacke 2012-06-13 18:10:34 +02:00 committed by Bjoern Jacke
parent a79496d90c
commit 7abe51f840

View File

@ -27,7 +27,6 @@ void inittalloc(void);
static PyObject *pytalloc_report_full(PyObject *self, PyObject *args)
{
PyObject *py_obj = Py_None;
PyTypeObject *type;
if (!PyArg_ParseTuple(args, "|O", &py_obj))
return NULL;
@ -35,7 +34,6 @@ static PyObject *pytalloc_report_full(PyObject *self, PyObject *args)
if (py_obj == Py_None) {
talloc_report_full(NULL, stdout);
} else {
type = (PyTypeObject*)PyObject_Type(py_obj);
talloc_report_full(pytalloc_get_mem_ctx(py_obj), stdout);
}
return Py_None;
@ -52,7 +50,6 @@ static PyObject *pytalloc_enable_null_tracking(PyObject *self)
static PyObject *pytalloc_total_blocks(PyObject *self, PyObject *args)
{
PyObject *py_obj = Py_None;
PyTypeObject *type;
if (!PyArg_ParseTuple(args, "|O", &py_obj))
return NULL;
@ -61,8 +58,6 @@ static PyObject *pytalloc_total_blocks(PyObject *self, PyObject *args)
return PyLong_FromLong(talloc_total_blocks(NULL));
}
type = (PyTypeObject*)PyObject_Type(py_obj);
return PyLong_FromLong(talloc_total_blocks(pytalloc_get_mem_ctx(py_obj)));
}