Cleanup: remove two unused macros in tabwidgets/maintab.cpp

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-02-25 10:51:47 +01:00 committed by Jan Mulder
parent 7bd860f2b7
commit 8251a6e980

View file

@ -1018,15 +1018,6 @@ void MainTab::resetPallete()
ui.depth->setPalette(p);
}
#define EDIT_TEXT2(what, text) \
textByteArray = text.toUtf8(); \
free(what); \
what = strdup(textByteArray.data());
#define FREE_IF_DIFFERENT(what) \
if (displayed_dive.what != cd->what) \
free(displayed_dive.what)
void MainTab::rejectChanges()
{
EditMode lastMode = editMode;
@ -1074,7 +1065,6 @@ void MainTab::rejectChanges()
weightModel->updateDive();
ui.editDiveSiteButton->setEnabled(!ui.location->text().isEmpty());
}
#undef EDIT_TEXT2
void MainTab::markChangedWidget(QWidget *w)
{