delete MainWindow::fillWordListFromHistory which is unused

This commit is contained in:
shenleban tongying 2024-10-09 23:53:09 -04:00
parent d5037ded24
commit 3c2e36d040
2 changed files with 0 additions and 21 deletions

View file

@ -3959,25 +3959,6 @@ void MainWindow::on_importFavorites_triggered()
mainStatusBar->showMessage( tr( "Favorites import complete" ), 5000 );
}
void MainWindow::fillWordListFromHistory()
{
ui.wordList->setUpdatesEnabled( false );
ui.wordList->clear();
QList< History::Item > const & items = history.getItems();
for ( const auto & item : items ) {
History::Item const * i = &item;
auto s = new QListWidgetItem( i->word, ui.wordList );
if ( s->text().at( 0 ).direction() == QChar::DirR )
s->setTextAlignment( Qt::AlignRight );
if ( s->text().at( 0 ).direction() == QChar::DirL )
s->setTextAlignment( Qt::AlignLeft );
ui.wordList->addItem( s );
}
ui.wordList->setUpdatesEnabled( true );
}
void MainWindow::focusWordList()
{
if ( ui.wordList->count() > 0 )

View file

@ -243,8 +243,6 @@ private:
ArticleView * getCurrentArticleView();
void ctrlTabPressed();
void fillWordListFromHistory();
QString unescapeTabHeader( QString const & header );
void respondToTranslationRequest( QString const & word,