summaryrefslogtreecommitdiffstats
path: root/commands/command_edit.cpp
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 /commands/command_edit.cpp
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 'commands/command_edit.cpp')
-rw-r--r--commands/command_edit.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/commands/command_edit.cpp b/commands/command_edit.cpp
index d55684814..80a7ac986 100644
--- a/commands/command_edit.cpp
+++ b/commands/command_edit.cpp
@@ -726,15 +726,6 @@ DiveField EditTags::fieldId() const
return DiveField::TAGS;
}
-// String list helper
-static QStringList stringToList(const QString &s)
-{
- QStringList res = s.split(",", QString::SkipEmptyParts);
- for (QString &str: res)
- str = str.trimmed();
- return res;
-}
-
// ***** Buddies *****
QStringList EditBuddies::data(struct dive *d) const
{