mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 10:51:51 +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);
|
struct m_config *config = talloc(talloc_parent, struct m_config);
|
||||||
talloc_set_destructor(config, config_destroy);
|
talloc_set_destructor(config, config_destroy);
|
||||||
*config = (struct m_config) {
|
*config = (struct m_config) {0};
|
||||||
.optstruct_size = size,
|
|
||||||
.optstruct_defaults = defaults,
|
|
||||||
.options = options,
|
|
||||||
};
|
|
||||||
// size==0 means a dummy object is created
|
// size==0 means a dummy object is created
|
||||||
if (size) {
|
if (size) {
|
||||||
config->optstruct = talloc_zero_size(config, size);
|
config->optstruct = talloc_zero_size(config, size);
|
||||||
|
@ -63,10 +63,6 @@ typedef struct m_config {
|
|||||||
bool use_profiles;
|
bool use_profiles;
|
||||||
int (*includefunc)(struct m_config *conf, char *filename, int flags);
|
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
|
void *optstruct; // struct mpopts or other
|
||||||
} m_config_t;
|
} m_config_t;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user