1
mirror of https://github.com/mpv-player/mpv synced 2024-08-24 07:21:49 +02:00

subreader.c: remove unused code

Remove code under "#ifdef DUMPSUBS". This code hasn't worked in years.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26409 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
uau 2008-04-12 15:51:02 +00:00
parent 71ed16bbb4
commit 43ff8aa004

View File

@ -1065,11 +1065,7 @@ static int sub_autodetect (stream_t* st, int *uses_time) {
return SUB_INVALID; // too many bad lines
}
#ifdef DUMPSUBS
int sub_utf8=0;
#else
extern int sub_utf8;
#endif
int sub_utf8_prev=0;
extern float sub_delay;
@ -2344,24 +2340,3 @@ int sub_clear_text(subtitle *sub, double pts) {
}
return changed;
}
#ifdef DUMPSUBS
int main(int argc, char **argv) { // for testing
sub_data *subd;
if(argc<2){
printf("\nUsage: subreader filename.sub\n\n");
exit(1);
}
sub_cp = argv[2];
subd = sub_read_file(argv[1]);
if(!subd){
printf("Couldn't load file.\n");
exit(1);
}
list_sub_file(subd);
return 0;
}
#endif