From ad59f100ae0421bc46290bd6f92d5431e319650f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 17 Oct 2020 20:17:14 +0200 Subject: [PATCH] cleanup: remove unused function intdup() That was used by the old xml-params code, which was recently replaced. Signed-off-by: Berthold Stoeger --- core/qthelper.cpp | 9 --------- core/qthelper.h | 1 - 2 files changed, 10 deletions(-) diff --git a/core/qthelper.cpp b/core/qthelper.cpp index a4187747b..889d08b60 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -1617,15 +1617,6 @@ void parse_seabear_header(const char *filename, struct xml_params *params) f.close(); } -char *intdup(int index) -{ - char tmpbuf[21]; - - snprintf(tmpbuf, sizeof(tmpbuf) - 2, "%d", index); - tmpbuf[20] = 0; - return strdup(tmpbuf); -} - extern "C" void print_qt_versions() { printf("%s\n", qPrintable(QStringLiteral("built with Qt Version %1, runtime from Qt Version %2").arg(QT_VERSION_STR).arg(qVersion()))); diff --git a/core/qthelper.h b/core/qthelper.h index 4e4b300a7..c53b185a2 100644 --- a/core/qthelper.h +++ b/core/qthelper.h @@ -45,7 +45,6 @@ extern const QStringList videoExtensionsList; QStringList mediaExtensionFilters(); QStringList imageExtensionFilters(); QStringList videoExtensionFilters(); -char *intdup(int index); 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);