diff options
author | wm4 <wm4@nowhere> | 2012-08-01 17:07:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-01 17:07:35 +0200 |
commit | c92538dfaa5eb7e9b2773f158cbb310545116abe (patch) | |
tree | 4b1ab99a17cbead6ff1b7bf9714642540cd66ce4 /sub/spudec.c | |
parent | 7175f178de72bb4f31cacd79b395a14beaf2f65a (diff) | |
download | mpv-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 'sub/spudec.c')
-rw-r--r-- | sub/spudec.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/sub/spudec.c b/sub/spudec.c index a871aa3cd9..6eabaf5723 100644 --- a/sub/spudec.c +++ b/sub/spudec.c @@ -1209,16 +1209,6 @@ nothing_to_do: } } -void spudec_update_palette(void * this, unsigned int *palette) -{ - spudec_handle_t *spu = this; - if (spu && palette) { - memcpy(spu->global_palette, palette, sizeof(spu->global_palette)); - if(spu->hw_spu) - vo_control(spu->hw_spu, VOCTRL_SET_SPU_PALETTE, spu->global_palette); - } -} - void spudec_set_font_factor(void * this, double factor) { spudec_handle_t *spu = this; @@ -1334,15 +1324,6 @@ void spudec_free(void *this) } } -void spudec_set_hw_spu(void *this, struct vo *hw_spu) -{ - spudec_handle_t *spu = this; - if (!spu) - return; - spu->hw_spu = hw_spu; - vo_control(hw_spu, VOCTRL_SET_SPU_PALETTE, spu->global_palette); -} - /** * palette must contain at least 256 32-bit entries, otherwise crashes * are possible |