Mercurial > mplayer.hg
changeset 26377:e03e2d2204b6
subreader.c: remove unused code
Remove code under "#ifdef DUMPSUBS". This code hasn't worked in years.
author | uau |
---|---|
date | Sat, 12 Apr 2008 15:51:02 +0000 |
parents | 68302d38e153 |
children | 2dc23fc4724a |
files | subreader.c |
diffstat | 1 files changed, 0 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/subreader.c Sat Apr 12 15:16:37 2008 +0000 +++ b/subreader.c Sat Apr 12 15:51:02 2008 +0000 @@ -1065,11 +1065,7 @@ 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 @@ } 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