summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-21 00:11:48 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:35 +0200
commit3f061dd62912728bf152c06e7c27b43a3cef312d (patch)
tree12b87b381eea5a11f051e2460a685692d84f10d2 /options
parent5ae271e4f43016c4ba36cc91e6811c75947028a4 (diff)
downloadmpv-3f061dd62912728bf152c06e7c27b43a3cef312d.tar.bz2
mpv-3f061dd62912728bf152c06e7c27b43a3cef312d.tar.xz
m_config: remove unused fields
Diffstat (limited to 'options')
-rw-r--r--options/m_config.c5
-rw-r--r--options/m_config.h5
2 files changed, 2 insertions, 8 deletions
diff --git a/options/m_config.c b/options/m_config.c
index 92f1009aec..c6f4325287 100644
--- a/options/m_config.c
+++ b/options/m_config.c
@@ -304,8 +304,7 @@ struct m_config *m_config_new(void *talloc_ctx, struct mp_log *log,
{
struct m_config *config = talloc(talloc_ctx, struct m_config);
talloc_set_destructor(config, config_destroy);
- *config = (struct m_config)
- {.log = log, .size = size, .defaults = defaults, .options = options};
+ *config = (struct m_config){.log = log,};
struct m_sub_options *subopts = talloc_ptrtype(config, subopts);
*subopts = (struct m_sub_options){
@@ -1233,7 +1232,7 @@ struct mpv_node m_config_get_profiles(struct m_config *config)
void m_config_create_shadow(struct m_config *config)
{
- assert(config->global && config->options && config->size);
+ assert(config->global);
assert(!config->shadow && !config->global->config);
config->shadow = talloc_zero(NULL, struct m_config_shadow);
diff --git a/options/m_config.h b/options/m_config.h
index 2c4531ff86..8a8dba8461 100644
--- a/options/m_config.h
+++ b/options/m_config.h
@@ -60,11 +60,6 @@ typedef struct m_config {
struct m_config_option *opts; // all options, even suboptions
int num_opts;
- // Creation parameters
- size_t size;
- const void *defaults;
- const struct m_option *options;
-
// List of defined profiles.
struct m_profile *profiles;
// Depth when recursively including profiles.