# HG changeset patch # User uau # Date 1208015462 0 # Node ID e03e2d2204b6de8f301e6e16269b71f222d9db4f # Parent 68302d38e153cd2b0046255df3cec87e6e8a002f subreader.c: remove unused code Remove code under "#ifdef DUMPSUBS". This code hasn't worked in years. diff -r 68302d38e153 -r e03e2d2204b6 subreader.c --- 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