summaryrefslogtreecommitdiffstats
path: root/mpcommon.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-11 17:28:10 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-11 17:28:10 +0200
commitb26fbeddd85aae6cda93d01335bed5f108a3ff57 (patch)
tree5f188a36267498b116eef50a60c8ca1f7f480822 /mpcommon.c
parent0b59e33b4e17fae9e0c318fcfeabba52e57dda4a (diff)
downloadmpv-b26fbeddd85aae6cda93d01335bed5f108a3ff57.tar.bz2
mpv-b26fbeddd85aae6cda93d01335bed5f108a3ff57.tar.xz
options: move -noconfig to option struct, simplify
Diffstat (limited to 'mpcommon.c')
-rw-r--r--mpcommon.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/mpcommon.c b/mpcommon.c
index 2fa7b6d0a8..a5e71b839e 100644
--- a/mpcommon.c
+++ b/mpcommon.c
@@ -346,22 +346,3 @@ bool attachment_is_font(struct demux_attachment *att)
}
return false;
}
-
-/* Parse -noconfig common to both programs */
-int disable_system_conf=0;
-int disable_user_conf=0;
-
-/* Disable all configuration files */
-static void noconfig_all(void)
-{
- disable_system_conf = 1;
- disable_user_conf = 1;
-}
-
-const m_option_t noconfig_opts[] = {
- {"all", noconfig_all, CONF_TYPE_FUNC, CONF_GLOBAL|CONF_NOCFG|CONF_PRE_PARSE, 0, 0, NULL},
- {"system", &disable_system_conf, CONF_TYPE_FLAG, CONF_GLOBAL|CONF_NOCFG|CONF_PRE_PARSE, 0, 1, NULL},
- {"user", &disable_user_conf, CONF_TYPE_FLAG, CONF_GLOBAL|CONF_NOCFG|CONF_PRE_PARSE, 0, 1, NULL},
- {NULL, NULL, 0, 0, 0, 0, NULL}
-};
-