mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:33:24 +00:00
Cleanup: remove two unused macros in tabwidgets/maintab.cpp
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
7bd860f2b7
commit
8251a6e980
1 changed files with 0 additions and 10 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue