Issue #119 - remove old debug code

This commit is contained in:
Geoff McLane 2017-03-17 18:02:11 +01:00
parent da55a6e4ac
commit 73f68e2b2a

View file

@ -2053,6 +2053,15 @@ int main( int argc, char** argv )
if ( status >= 0 ) { if ( status >= 0 ) {
status = tidyRunDiagnostics( tdoc ); status = tidyRunDiagnostics( tdoc );
/*\ Issue #119 - but not really related to 'custom_tags' support.
* Issue ?: To remove some 2014 extra debug output - I wanted to
* remove the Info: messages, but chose to except one, namely
* tidyReportDoctype(), but never intended keeping it here
* for so long!
* That doctype Info:, and all others, are still reported by
* default. geoff
\*/
#if 0 /* 000000000 this code can be removed some time in future 00000000000 */
if ( !tidyOptGetBool(tdoc, TidyQuiet) ) { if ( !tidyOptGetBool(tdoc, TidyQuiet) ) {
/* NOT quiet, show DOCTYPE, if not already shown */ /* NOT quiet, show DOCTYPE, if not already shown */
if (!tidyOptGetBool(tdoc, TidyShowInfo)) { if (!tidyOptGetBool(tdoc, TidyShowInfo)) {
@ -2061,7 +2070,7 @@ int main( int argc, char** argv )
tidyOptSetBool( tdoc, TidyShowInfo, no ); tidyOptSetBool( tdoc, TidyShowInfo, no );
} }
} }
#endif /* 000000000 this code can be removed some time in future 00000000000 */
} }
if ( status > 1 ) /* If errors, do we want to force output? */ if ( status > 1 ) /* If errors, do we want to force output? */
status = ( tidyOptGetBool(tdoc, TidyForceOutput) ? status : -1 ); status = ( tidyOptGetBool(tdoc, TidyForceOutput) ? status : -1 );