diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-17 20:17:14 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-23 18:17:02 -0700 |
commit | ad59f100ae0421bc46290bd6f92d5431e319650f (patch) | |
tree | 76c55a908a0c340cfb0fd4a982fe6cf9343db0ae | |
parent | d508a16aca91b521719d929cd59db381c44cd7ad (diff) | |
download | subsurface-ad59f100ae0421bc46290bd6f92d5431e319650f.tar.gz |
cleanup: remove unused function intdup()
That was used by the old xml-params code, which was recently
replaced.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | core/qthelper.cpp | 9 | ||||
-rw-r--r-- | core/qthelper.h | 1 |
2 files changed, 0 insertions, 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); |