Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/include/conversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ as_status record_to_pyobject(AerospikeClient *self, as_error *err,
const as_record *rec, const as_key *key,
PyObject **obj);

as_status record_to_resultpyobject(AerospikeClient *self, as_error *err,
const as_record *rec, PyObject **obj);

as_status operate_bins_to_pyobject(AerospikeClient *self, as_error *err,
const as_record *rec, PyObject **py_bins);

Expand All @@ -151,11 +148,6 @@ as_status bins_to_pyobject(AerospikeClient *self, as_error *err,

void error_to_pyobject(const as_error *err, PyObject **obj);

as_status pyobject_to_astype_write(AerospikeClient *self, as_error *err,
PyObject *py_value, as_val **val,
as_static_pool *static_pool,
int serializer_type);

as_status as_privilege_to_pyobject(as_error *err, as_privilege privileges[],
PyObject *py_as_privilege,
int privilege_size);
Expand Down
41 changes: 0 additions & 41 deletions src/main/conversions.c
Original file line number Diff line number Diff line change
Expand Up @@ -2001,47 +2001,6 @@ as_status do_record_to_pyobject(AerospikeClient *self, as_error *err,
return err->code;
}

as_status record_to_resultpyobject(AerospikeClient *self, as_error *err,
const as_record *rec, PyObject **obj)
{
as_error_reset(err);
*obj = NULL;

if (!rec) {
return as_error_update(err, AEROSPIKE_ERR_CLIENT, "record is null");
}

PyObject *py_rec = NULL;
PyObject *py_rec_meta = NULL;
PyObject *py_rec_bins = NULL;

if (metadata_to_pyobject(err, rec, &py_rec_meta) != AEROSPIKE_OK) {
return err->code;
}

if (bins_to_pyobject(self, err, rec, &py_rec_bins, false) != AEROSPIKE_OK) {
Py_CLEAR(py_rec_meta);
return err->code;
}

if (!py_rec_meta) {
Py_INCREF(Py_None);
py_rec_meta = Py_None;
}

if (!py_rec_bins) {
Py_INCREF(Py_None);
py_rec_bins = Py_None;
}

py_rec = PyTuple_New(2);
PyTuple_SetItem(py_rec, 0, py_rec_meta);
PyTuple_SetItem(py_rec, 1, py_rec_bins);

*obj = py_rec;
return err->code;
}

as_status record_to_pyobject(AerospikeClient *self, as_error *err,
const as_record *rec, const as_key *key,
PyObject **obj)
Expand Down
Loading