diff options
author | Martin Pool <mbp@samba.org> | 2002-11-12 21:42:36 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-11-12 21:42:36 +0000 |
commit | 7031a02c013fd93b7a4b410996057e3ff9126f89 (patch) | |
tree | 90b0265958554ba3884bab421f219ca76d54c30b /source3 | |
parent | cf671ca0dfa51eed5aa5d0d25996faf8fec7552a (diff) | |
download | samba-7031a02c013fd93b7a4b410996057e3ff9126f89.tar.gz samba-7031a02c013fd93b7a4b410996057e3ff9126f89.tar.bz2 samba-7031a02c013fd93b7a4b410996057e3ff9126f89.zip |
Remove dead code for packing buffers which has now been reimplemented.
(This used to be commit 62ca27d140d55cbb271b97624023540ae7c18882)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/python/py_tdbpack.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/source3/python/py_tdbpack.c b/source3/python/py_tdbpack.c index 7180c3e12c..12e3818123 100644 --- a/source3/python/py_tdbpack.c +++ b/source3/python/py_tdbpack.c @@ -378,42 +378,6 @@ pytdbpack_buffer(PyObject *val_iter, PyObject *packed_list) } -#if 0 -else if (ch == 'B') { - long size; - char *sval; - - if (!PyNumber_Check(val_obj)) { - pytdbpack_bad_type(ch, "Number", val_obj); - return NULL; - } - - if (!(val_obj = PyNumber_Long(val_obj))) - return NULL; - - size = PyLong_AsLong(val_obj); - pack_le_uint32(size, &packed); - - /* Release the new reference created by the cast */ - Py_DECREF(val_obj); - - val_obj = PySequence_GetItem(val_seq, val_i++); - if (!val_obj) - return NULL; - - sval = PyString_AsString(val_obj); - if (!sval) - return NULL; - - pack_bytes(size, sval, &packed); /* do not include nul */ - } - else { - - } - - return Py_None; -} -#endif static PyObject * pytdbpack_unpack(PyObject *self, |