From 4bb002d1370a9eb4ebe5a1210b969edc5cdba893 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 13 Apr 2019 15:41:47 +0200 Subject: Cleanup: Remove MainTab::getEditMode() function The only caller of said function used to check whether MainTab is in edit mode. For this case there is already a function - use that instead. Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'desktop-widgets/tab-widgets/maintab.cpp') diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 7dda4c0e7..d1e47ddd9 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -704,11 +704,6 @@ void MainTab::reload() mark_divelist_changed(true); \ } while (0) -MainTab::EditMode MainTab::getEditMode() const -{ - return editMode; -} - void MainTab::refreshDisplayedDiveSite() { struct dive_site *ds = get_dive_site_for_dive(current_dive); -- cgit v1.2.3-70-g09d2