summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-02-25 10:51:47 +0100
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-02-26 08:53:12 +0100
commit8251a6e9803f4a8ea82add49934088689b48e9e4 (patch)
tree6c2865f37c924ed7b7c95ef1ca423040e114e474 /desktop-widgets
parent7bd860f2b768ac9f14fea7a55ad23092a9f4bba2 (diff)
downloadsubsurface-8251a6e9803f4a8ea82add49934088689b48e9e4.tar.gz
Cleanup: remove two unused macros in tabwidgets/maintab.cpp
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index 2e21a1655..553eac77c 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -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)
{