From b7cee3d4588fcc23a5497bcdbd55026236dbb9eb Mon Sep 17 00:00:00 2001 From: Julian Nguyen <109386615+juliannguyen4@users.noreply.github.com> Date: Mon, 16 Sep 2024 08:54:22 -0700 Subject: [PATCH] Mv, remove unused stuff --- src/include/policy.h | 19 ------------------- src/main/aerospike.c | 10 ++++++++++ 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/src/include/policy.h b/src/include/policy.h index 6bc80d96c..447944190 100644 --- a/src/include/policy.h +++ b/src/include/policy.h @@ -193,25 +193,6 @@ enum aerospike_cdt_ctx_identifiers { CDT_CTX_MAP_KEY_CREATE = 0x24 }; -struct module_constant_name_to_value { - const char *member_name; - // If false, is int value - bool is_str_value; - union value { - long integer; - const char *string; - } value; -}; - -typedef struct Aerospike_JobConstants { - char job_str[MAX_CONSTANT_STR_SIZE]; - char exposed_job_str[MAX_CONSTANT_STR_SIZE]; -} AerospikeJobConstants; -#define AEROSPIKE_CONSTANTS_ARR_SIZE \ - (sizeof(aerospike_constants) / sizeof(AerospikeConstants)) -#define AEROSPIKE_JOB_CONSTANTS_ARR_SIZE \ - (sizeof(aerospike_job_constants) / sizeof(AerospikeJobConstants)) - as_status pyobject_to_policy_admin(AerospikeClient *self, as_error *err, PyObject *py_policy, as_policy_admin *policy, as_policy_admin **policy_p, diff --git a/src/main/aerospike.c b/src/main/aerospike.c index 2a3c1e741..4b8192a59 100644 --- a/src/main/aerospike.c +++ b/src/main/aerospike.c @@ -88,6 +88,16 @@ static PyMethodDef Aerospike_Methods[] = { {NULL}}; +struct module_constant_name_to_value { + const char *member_name; + // If false, is int value + bool is_str_value; + union value { + long integer; + const char *string; + } value; +}; + static struct module_constant_name_to_value module_constants[] = { {"OPERATOR_READ", false, .value.integer = AS_OPERATOR_READ}, {"OPERATOR_WRITE", false, .value.integer = AS_OPERATOR_WRITE},