From 554af4e81a36c0b8c83e1caefce003bdb9d8ae1b Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Thu, 20 Oct 2011 18:54:07 +0200 Subject: [PATCH] Removed dead code Change-Id: I613daecfe47a17622f30d38d4b74dd21949a08ad Reviewed-by: Eike Ziller Reviewed-by: Leandro T. C. Melo --- src/plugins/texteditor/fontsettingspage.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/plugins/texteditor/fontsettingspage.cpp b/src/plugins/texteditor/fontsettingspage.cpp index 63930199576..3c800087199 100644 --- a/src/plugins/texteditor/fontsettingspage.cpp +++ b/src/plugins/texteditor/fontsettingspage.cpp @@ -396,14 +396,7 @@ void FontSettingsPage::updatePointSizes() { // Update point sizes const int oldSize = d_ptr->m_value.fontSize(); - if (d_ptr->m_ui->sizeComboBox->count()) { - const QString curSize = d_ptr->m_ui->sizeComboBox->currentText(); - bool ok = true; - int oldSize = curSize.toInt(&ok); - if (!ok) - oldSize = d_ptr->m_value.fontSize(); - d_ptr->m_ui->sizeComboBox->clear(); - } + d_ptr->m_ui->sizeComboBox->clear(); const QList sizeLst = pointSizesForSelectedFont(); int idx = -1; int i = 0;