core: remove copy_qstring() function

No more users of that (yippie!).

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-06-13 23:06:35 +02:00 committed by bstoeger
parent ccdd92aeb7
commit d594cc72f0
3 changed files with 1 additions and 7 deletions

View file

@ -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"

View file

@ -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;

View file

@ -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);