diff --git a/commands/command_edit.cpp b/commands/command_edit.cpp index fd97dc0ec..501516462 100644 --- a/commands/command_edit.cpp +++ b/commands/command_edit.cpp @@ -5,7 +5,7 @@ #include "core/divelog.h" #include "core/event.h" #include "core/fulltext.h" -#include "core/qthelper.h" // for copy_qstring +#include "core/qthelper.h" #include "core/range.h" #include "core/sample.h" #include "core/selection.h" diff --git a/core/qthelper.cpp b/core/qthelper.cpp index add3e9421..18aa3507a 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -1520,11 +1520,6 @@ void unlock_planner() planLock.unlock(); } -char *copy_qstring(const QString &s) -{ - return strdup(qPrintable(s)); -} - // function to call to allow the UI to show updates for longer running activities void (*uiNotificationCallback)(QString msg) = nullptr; diff --git a/core/qthelper.h b/core/qthelper.h index 27497f7c3..775916db4 100644 --- a/core/qthelper.h +++ b/core/qthelper.h @@ -44,7 +44,6 @@ extern const QStringList videoExtensionsList; QStringList mediaExtensionFilters(); QStringList imageExtensionFilters(); QStringList videoExtensionFilters(); -char *copy_qstring(const QString &); QString get_depth_string(depth_t depth, bool showunit = false, bool showdecimal = true); QString get_depth_string(int mm, bool showunit = false, bool showdecimal = true); QString get_depth_unit(bool metric);