From 04320d26ebb8a9ea2cfba9a7b6ddec0920326233 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 9 Sep 2016 17:44:02 +0200 Subject: stream, demux, config: remove some dead/unneeded option-related code This has all been made unnecessary recently. The change not to copy the global option struct in particular can be made because now nothing accesses the global options anymore in the demux and stream layers. Some code that was accidentally added/changed in commit 5e30e7a0 is also removed, because it was simply committed accidentally, and was never used. --- options/m_config.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'options/m_config.h') diff --git a/options/m_config.h b/options/m_config.h index 1e23a2b0dd..ec9eb21ae2 100644 --- a/options/m_config.h +++ b/options/m_config.h @@ -272,15 +272,6 @@ int m_config_set_profile(struct m_config *config, char *name, int flags); struct mpv_node m_config_get_profiles(struct m_config *config); -void *m_config_alloc_struct(void *talloc_ctx, - const struct m_sub_options *subopts); - -// Create a copy of the struct ptr, described by opts. -// "opts" must live until the struct is free'd. -// Freeing the struct frees all members. -void *m_sub_options_copy(void *talloc_ctx, const struct m_sub_options *opts, - const void *ptr); - // This can be used to create and synchronize per-thread option structs, // which then can be read without synchronization. No concurrent access to // the cache itself is allowed. -- cgit v1.2.3