diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-09-05 15:24:54 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-09-05 15:24:54 -0400 |
commit | a727d4a3a17674e886f2b3fd6344774a2d759743 (patch) | |
tree | e2c14297aa75179cfdf6a1ddf0b3d1bdb03cf826 /src/lib/confmgt/structvar.c | |
parent | 545c21e23dcb2c73ab9d9f33e2ea6906a230b4b5 (diff) | |
download | tor-a727d4a3a17674e886f2b3fd6344774a2d759743.tar.gz tor-a727d4a3a17674e886f2b3fd6344774a2d759743.zip |
Remove unused struct_var_* functions.
These turned out to be unnecessary, so let's not keep them around
and let them start getting complicated.
Closes ticket 31630.
Diffstat (limited to 'src/lib/confmgt/structvar.c')
-rw-r--r-- | src/lib/confmgt/structvar.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/lib/confmgt/structvar.c b/src/lib/confmgt/structvar.c index 32f616c214..75edda2c38 100644 --- a/src/lib/confmgt/structvar.c +++ b/src/lib/confmgt/structvar.c @@ -93,20 +93,6 @@ get_type_def(const struct_member_t *member) } /** - * (As typed_var_assign, but assign a value to the member of <b>object</b> - * defined by <b>member</b>.) - **/ -int -struct_var_assign(void *object, const char *value, char **errmsg, - const struct_member_t *member) -{ - void *p = struct_get_mptr(object, member); - const var_type_def_t *def = get_type_def(member); - - return typed_var_assign(p, value, errmsg, def); -} - -/** * (As typed_var_free, but free and clear the member of <b>object</b> defined * by <b>member</b>.) **/ @@ -120,19 +106,6 @@ struct_var_free(void *object, const struct_member_t *member) } /** - * (As typed_var_encode, but encode the member of <b>object</b> defined - * by <b>member</b>.) - **/ -char * -struct_var_encode(const void *object, const struct_member_t *member) -{ - const void *p = struct_get_ptr(object, member); - const var_type_def_t *def = get_type_def(member); - - return typed_var_encode(p, def); -} - -/** * (As typed_var_copy, but copy from <b>src</b> to <b>dest</b> the member * defined by <b>member</b>.) **/ |