Skip to content

Commit

Permalink
opt: remove debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
YiFang Xiao committed Jan 26, 2024
1 parent 9d34a6a commit 0596ed5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 17 deletions.
9 changes: 0 additions & 9 deletions src/article_maker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -486,22 +486,13 @@ void ArticleRequest::altSearchFinished()
}

if ( altSearches.empty() ) {
#ifdef QT_DEBUG
qDebug( "alts finished" );
#endif

// They all've finished! Now we can look up bodies

altsDone = true; // So any pending signals in queued mode won't mess us up

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 );

if ( activeDicts.size() <= 1 )
Expand Down
4 changes: 1 addition & 3 deletions src/dict/dsl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1887,9 +1887,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
if ( isDslWs( curString[ 0 ] ) )
break; // No more headwords

#ifdef QT_DEBUG
qDebug() << "Alt headword" << QString::fromStdU32String( curString );
#endif
qDebug() << "dsl Alt headword" << QString::fromStdU32String( curString );

processUnsortedParts( curString, true );
expandTildes( curString, allEntryWords.front() );
Expand Down
3 changes: 0 additions & 3 deletions src/dict/hunspell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,6 @@ QVector< wstring > suggest( wstring & word, QMutex & hunspellMutex, Hunspell & h

if ( Folding::applySimpleCaseOnly( alt ) != lowercasedWord ) // No point in providing same word
{
#ifdef QT_DEBUG
qDebug() << ">>>>>Alt:" << QString::fromStdU32String( alt );
#endif
result.append( alt );
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/ui/mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1635,9 +1635,7 @@ void MainWindow::updateGroupList()

updateDictionaryBar();

#ifdef QT_DEBUG
qDebug() << "Reloading all the tabs...";
#endif

for ( int i = 0; i < ui.tabWidget->count(); ++i ) {
ArticleView & view = dynamic_cast< ArticleView & >( *( ui.tabWidget->widget( i ) ) );
Expand Down

0 comments on commit 0596ed5

Please sign in to comment.