From 2a97934db4c9e0bedf87649575cba527b874386f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 10 Jan 2020 07:09:17 +0800 Subject: Cleanup: Move stringToList to core/qthelper.cpp The same code was used in desktop and undo commands. Let's unify. Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.cpp | 8 -------- 1 file changed, 8 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 85d64c66d..ca51feb05 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -631,14 +631,6 @@ void MainTab::divesEdited(int i) ui.multiDiveWarningMessage->show(); } -static QStringList stringToList(const QString &s) -{ - QStringList res = s.split(",", QString::SkipEmptyParts); - for (QString &str: res) - str = str.trimmed(); - return res; -} - void MainTab::on_buddy_editingFinished() { if (editMode == IGNORE_MODE || !current_dive) -- cgit v1.2.3-70-g09d2