diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-01-10 07:09:17 +0800 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2020-03-06 10:00:13 +0100 |
commit | 2a97934db4c9e0bedf87649575cba527b874386f (patch) | |
tree | 5fe2ac4319a95c07ebf04df7f8c9eb5082811f01 /desktop-widgets/tab-widgets | |
parent | c495a49b1b044ab54ee60d4b0db14caa3f8e3de1 (diff) | |
download | subsurface-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.cpp | 8 |
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) |