aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_options.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-23 18:03:24 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-24 20:30:32 -0400
commit24ee44df90d12eb98ba5a39638963696ce2f8012 (patch)
tree75bb82549a6e05e945a974b45269d60f192c1b8d /src/test/test_options.c
parent7c0f96666880256bbadd23233dd108d33f8b744e (diff)
downloadtor-24ee44df90d12eb98ba5a39638963696ce2f8012.tar.gz
tor-24ee44df90d12eb98ba5a39638963696ce2f8012.zip
test_options: stop generating old_data entirely.
Now that we no longer use it anywhere, we can remove this variable from the test data structure.
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r--src/test/test_options.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c
index 941ca94d97..374fa8b18e 100644
--- a/src/test/test_options.c
+++ b/src/test/test_options.c
@@ -384,7 +384,6 @@ fixed_get_uname(void)
}
typedef struct {
- or_options_t *old_opt;
or_options_t *opt;
} options_test_data_t;
@@ -398,10 +397,8 @@ get_options_test_data(const char *conf)
config_line_t *cl=NULL;
options_test_data_t *result = tor_malloc(sizeof(options_test_data_t));
result->opt = options_new();
- result->old_opt = options_new();
options_init(result->opt);
- options_init(result->old_opt);
rv = config_get_lines(conf, &cl, 1);
tt_int_op(rv, OP_EQ, 0);
@@ -433,7 +430,6 @@ static void
free_options_test_data(options_test_data_t *td)
{
if (!td) return;
- or_options_free(td->old_opt);
or_options_free(td->opt);
tor_free(td);
}