diff --git a/QVectorSearch/mainwindow.cpp b/QVectorSearch/mainwindow.cpp index c37b2a6..a274c71 100644 --- a/QVectorSearch/mainwindow.cpp +++ b/QVectorSearch/mainwindow.cpp @@ -36,13 +36,6 @@ void MainWindow::generateWordList() { std::stringstream status_message; status_message << "generated " << word_list_.size() << " words in " << timer; ui->mainStatusBar->showMessage(QString::fromStdString(status_message.str())); - - QStringList words; - for (const auto &word : word_list_) { - words.append(QString::fromStdString(word)); - } - - result_model_.setStringList(words); } void MainWindow::search(const QString &search_term) {