mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 10:17:31 +00:00
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:
parent
75e1c6f295
commit
28d3fe1d6d
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user