mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user