aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-01-10 07:09:17 +0800
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2020-03-06 10:00:13 +0100
commit2a97934db4c9e0bedf87649575cba527b874386f (patch)
tree5fe2ac4319a95c07ebf04df7f8c9eb5082811f01 /desktop-widgets/tab-widgets
parentc495a49b1b044ab54ee60d4b0db14caa3f8e3de1 (diff)
downloadsubsurface-2a97934db4c9e0bedf87649575cba527b874386f.tar.gz
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp8
1 files changed, 0 insertions, 8 deletions
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)