summaryrefslogtreecommitdiffstats
path: root/source/python
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-07-19 10:01:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:12 -0500
commit0a9395bb486c80799ea14f0ebe7a371da34628b5 (patch)
treec18ffad062a63f5325fa18aeb0e8d2b2e31bde09 /source/python
parentc525c276c3bebd97f2c86684bd248ed00e889349 (diff)
downloadsamba-0a9395bb486c80799ea14f0ebe7a371da34628b5.tar.gz
samba-0a9395bb486c80799ea14f0ebe7a371da34628b5.tar.xz
samba-0a9395bb486c80799ea14f0ebe7a371da34628b5.zip
r8596: Don't wrap non-existent functions. Bugzilla #2895.
Diffstat (limited to 'source/python')
-rw-r--r--source/python/py_tdb.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/source/python/py_tdb.c b/source/python/py_tdb.c
index ccd1e6e1c63..f73aa0ba8be 100644
--- a/source/python/py_tdb.c
+++ b/source/python/py_tdb.c
@@ -376,49 +376,6 @@ static BOOL make_lock_list(PyObject *py_keys, TDB_DATA **keys, int *num_keys)
return True;
}
-PyObject *py_tdb_hnd_lock(PyObject *self, PyObject *args)
-{
- tdb_hnd_object *obj = (tdb_hnd_object *)self;
- PyObject *py_keys;
- TDB_DATA *keys;
- int num_keys, result;
-
- if (!obj->tdb) {
- PyErr_SetString(py_tdb_error, "tdb object has been closed");
- return NULL;
- }
-
- if (!PyArg_ParseTuple(args, "O", &py_keys))
- return NULL;
-
- if (!make_lock_list(py_keys, &keys, &num_keys))
- return NULL;
-
- result = tdb_lockkeys(obj->tdb, num_keys, keys);
-
- free(keys);
-
- return PyInt_FromLong(result != -1);
-}
-
-PyObject *py_tdb_hnd_unlock(PyObject *self, PyObject *args)
-{
- tdb_hnd_object *obj = (tdb_hnd_object *)self;
-
- if (!obj->tdb) {
- PyErr_SetString(py_tdb_error, "tdb object has been closed");
- return NULL;
- }
-
- if (!PyArg_ParseTuple(args, ""))
- return NULL;
-
- tdb_unlockkeys(obj->tdb);
-
- Py_INCREF(Py_None);
- return Py_None;
-}
-
/*
* tdb traversal
*/
@@ -582,8 +539,6 @@ static PyMethodDef tdb_hnd_methods[] = {
{ "next_key", (PyCFunction)py_tdb_hnd_next_key, METH_VARARGS },
{ "lock_all", (PyCFunction)py_tdb_hnd_lock_all, METH_VARARGS },
{ "unlock_all", (PyCFunction)py_tdb_hnd_unlock_all, METH_VARARGS },
- { "lock", (PyCFunction)py_tdb_hnd_lock, METH_VARARGS },
- { "unlock", (PyCFunction)py_tdb_hnd_unlock, METH_VARARGS },
{ "traverse", (PyCFunction)py_tdb_hnd_traverse, METH_VARARGS | METH_KEYWORDS },
{ "chainlock", (PyCFunction)py_tdb_hnd_chainlock, METH_VARARGS | METH_KEYWORDS },
{ "chainunlock", (PyCFunction)py_tdb_hnd_chainunlock, METH_VARARGS | METH_KEYWORDS },