m_config: remove unused fields

We don't need that anymore, because the old way to get default values
by recreating the m_config is gone.
This commit is contained in:
wm4 2013-10-25 15:34:45 +02:00
parent 75e1c6f295
commit 28d3fe1d6d
2 changed files with 1 additions and 9 deletions

View File

@ -193,11 +193,7 @@ struct m_config *m_config_new(void *talloc_parent, size_t size,
{
struct m_config *config = talloc(talloc_parent, struct m_config);
talloc_set_destructor(config, config_destroy);
*config = (struct m_config) {
.optstruct_size = size,
.optstruct_defaults = defaults,
.options = options,
};
*config = (struct m_config) {0};
// size==0 means a dummy object is created
if (size) {
config->optstruct = talloc_zero_size(config, size);

View File

@ -63,10 +63,6 @@ typedef struct m_config {
bool use_profiles;
int (*includefunc)(struct m_config *conf, char *filename, int flags);
const void *optstruct_defaults;
size_t optstruct_size;
const struct m_option *options; // top-level options
void *optstruct; // struct mpopts or other
} m_config_t;