# HG changeset patch # User diego # Date 1210886741 0 # Node ID 65f61607e32f88ff36024fedbc20b8f16e4242ee # Parent ba4a01eb4475d977e3c304bbaeee37bd95883da4 Remove unused function, fixes the warning: libmpdemux/demux_mkv.c:2242: warning: 'demux_mkv_reverse_id' defined but not used diff -r ba4a01eb4475 -r 65f61607e32f libmpdemux/demux_mkv.c --- a/libmpdemux/demux_mkv.c Thu May 15 16:11:50 2008 +0000 +++ b/libmpdemux/demux_mkv.c Thu May 15 21:25:41 2008 +0000 @@ -2233,25 +2233,6 @@ static void demux_mkv_seek (demuxer_t *demuxer, float rel_seek_secs, float audio_delay, int flags); -/** \brief Given a matroska track number and type, find the id that mplayer would ask for. - * \param d The demuxer for which the subtitle id should be returned. - * \param num The matroska track number we are looking up. - * \param type The track type. - */ -static int demux_mkv_reverse_id(mkv_demuxer_t *d, int num, int type) -{ - int i, id; - - for (i=0, id=0; i < d->num_tracks; i++) - if (d->tracks[i] != NULL && d->tracks[i]->type == type) { - if (d->tracks[i]->tnum == num) - return id; - id++; - } - - return -1; -} - static int demux_mkv_open (demuxer_t *demuxer) {