From 10d29af2a24737ad8b37d1a969166a9f7a399189 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 22 Jun 2016 21:09:00 +0300 Subject: [PATCH] Refactoring, removed unused code. --HG-- branch : develop --- src/app/tape/tmainwindow.cpp | 48 ------------------------------------ 1 file changed, 48 deletions(-) diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index 98f83986a..1ab6241e6 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -1584,22 +1584,6 @@ void TMainWindow::SaveMBaseValue(double value) } const QTableWidgetItem *nameField = ui->tableWidget->item(ui->tableWidget->currentRow(), ColumnName); - - QSharedPointer meash; - - try - { - // Translate to internal look. - meash = data->GetVariable(nameField->data(Qt::UserRole).toString()); - } - catch(const VExceptionBadId &e) - { - qCWarning(tMainWindow, "%s\n\n%s\n\n%s", - qUtf8Printable(tr("Can't find measurement '%1'.").arg(nameField->text())), - qUtf8Printable(e.ErrorMessage()), qUtf8Printable(e.DetailedInformation())); - return; - } - m->SetMBaseValue(nameField->data(Qt::UserRole).toString(), value); MeasurementsWasSaved(false); @@ -1625,22 +1609,6 @@ void TMainWindow::SaveMSizeIncrease(double value) } const QTableWidgetItem *nameField = ui->tableWidget->item(ui->tableWidget->currentRow(), ColumnName); - - QSharedPointer meash; - - try - { - // Translate to internal look. - meash = data->GetVariable(nameField->data(Qt::UserRole).toString()); - } - catch(const VExceptionBadId &e) - { - qCWarning(tMainWindow, "%s\n\n%s\n\n%s", - qUtf8Printable(tr("Can't find measurement '%1'.").arg(nameField->text())), - qUtf8Printable(e.ErrorMessage()), qUtf8Printable(e.DetailedInformation())); - return; - } - m->SetMSizeIncrease(nameField->data(Qt::UserRole).toString(), value); MeasurementsWasSaved(false); @@ -1666,22 +1634,6 @@ void TMainWindow::SaveMHeightIncrease(double value) } const QTableWidgetItem *nameField = ui->tableWidget->item(ui->tableWidget->currentRow(), ColumnName); - - QSharedPointer meash; - - try - { - // Translate to internal look. - meash = data->GetVariable(nameField->data(Qt::UserRole).toString()); - } - catch(const VExceptionBadId &e) - { - qCWarning(tMainWindow, "%s\n\n%s\n\n%s", - qUtf8Printable(tr("Can't find measurement '%1'.").arg(nameField->text())), - qUtf8Printable(e.ErrorMessage()), qUtf8Printable(e.DetailedInformation())); - return; - } - m->SetMHeightIncrease(nameField->data(Qt::UserRole).toString(), value); MeasurementsWasSaved(false);