opt: remove debug info

This commit is contained in:
YiFang Xiao 2024-01-26 15:50:01 +08:00
parent 9d34a6a316
commit 0596ed5e45
4 changed files with 1 additions and 17 deletions

View file

@ -486,9 +486,6 @@ void ArticleRequest::altSearchFinished()
} }
if ( altSearches.empty() ) { if ( altSearches.empty() ) {
#ifdef QT_DEBUG
qDebug( "alts finished" );
#endif
// They all've finished! Now we can look up bodies // They all've finished! Now we can look up bodies
@ -496,12 +493,6 @@ void ArticleRequest::altSearchFinished()
vector< wstring > altsVector( alts.begin(), alts.end() ); vector< wstring > altsVector( alts.begin(), alts.end() );
#ifdef QT_DEBUG
for ( const auto & x : altsVector ) {
qDebug() << "Alt:" << QString::fromStdU32String( x );
}
#endif
wstring wordStd = gd::toWString( word ); wstring wordStd = gd::toWString( word );
if ( activeDicts.size() <= 1 ) if ( activeDicts.size() <= 1 )

View file

@ -1887,9 +1887,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
if ( isDslWs( curString[ 0 ] ) ) if ( isDslWs( curString[ 0 ] ) )
break; // No more headwords break; // No more headwords
#ifdef QT_DEBUG qDebug() << "dsl Alt headword" << QString::fromStdU32String( curString );
qDebug() << "Alt headword" << QString::fromStdU32String( curString );
#endif
processUnsortedParts( curString, true ); processUnsortedParts( curString, true );
expandTildes( curString, allEntryWords.front() ); expandTildes( curString, allEntryWords.front() );

View file

@ -411,9 +411,6 @@ QVector< wstring > suggest( wstring & word, QMutex & hunspellMutex, Hunspell & h
if ( Folding::applySimpleCaseOnly( alt ) != lowercasedWord ) // No point in providing same word if ( Folding::applySimpleCaseOnly( alt ) != lowercasedWord ) // No point in providing same word
{ {
#ifdef QT_DEBUG
qDebug() << ">>>>>Alt:" << QString::fromStdU32String( alt );
#endif
result.append( alt ); result.append( alt );
} }
} }

View file

@ -1635,9 +1635,7 @@ void MainWindow::updateGroupList()
updateDictionaryBar(); updateDictionaryBar();
#ifdef QT_DEBUG
qDebug() << "Reloading all the tabs..."; qDebug() << "Reloading all the tabs...";
#endif
for ( int i = 0; i < ui.tabWidget->count(); ++i ) { for ( int i = 0; i < ui.tabWidget->count(); ++i ) {
ArticleView & view = dynamic_cast< ArticleView & >( *( ui.tabWidget->widget( i ) ) ); ArticleView & view = dynamic_cast< ArticleView & >( *( ui.tabWidget->widget( i ) ) );