summaryrefslogtreecommitdiffstats
path: root/m_struct.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-08-01 17:07:35 +0200
committerwm4 <wm4@nowhere>2012-08-01 17:07:35 +0200
commitc92538dfaa5eb7e9b2773f158cbb310545116abe (patch)
tree4b1ab99a17cbead6ff1b7bf9714642540cd66ce4 /m_struct.h
parent7175f178de72bb4f31cacd79b395a14beaf2f65a (diff)
downloadmpv-c92538dfaa5eb7e9b2773f158cbb310545116abe.tar.bz2
mpv-c92538dfaa5eb7e9b2773f158cbb310545116abe.tar.xz
Remove dead code
This was done with the help of callcatcher [1]. Only functions which are statically known to be unused are removed. Some unused functions are not removed yet, because they might be needed in the near future (such as open_output_stream for the encode branch). There is one user visible change: the --subcc option did nothing, and is removed with this commit. [1] http://www.skynet.ie/~caolan/Packages/callcatcher.html
Diffstat (limited to 'm_struct.h')
-rw-r--r--m_struct.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/m_struct.h b/m_struct.h
index 79c7c24f2f..1645ae734a 100644
--- a/m_struct.h
+++ b/m_struct.h
@@ -92,22 +92,6 @@ m_struct_alloc(const m_struct_t* st);
int m_struct_set(const m_struct_t *st, void *obj, const char *field,
struct bstr param);
-/// Reset a field (or all if field == NULL) to defaults.
-/** \param st Struct definition.
- * \param obj Pointer to the struct to set.
- * \param field Name of the field to reset, if NULL all fields are reseted.
- */
-void
-m_struct_reset(const m_struct_t* st, void* obj, const char* field);
-
-/// Create a copy of an existing struct.
-/** \param st Struct definition.
- * \param obj Pointer to the struct to copy.
- * \return Newly allocated copy of obj.
- */
-void*
-m_struct_copy(const m_struct_t* st, void* obj);
-
/// Free an allocated struct.
/** \param st Struct definition.
* \param obj Pointer to the struct to copy.