summaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-17 20:17:14 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-23 18:17:02 -0700
commitad59f100ae0421bc46290bd6f92d5431e319650f (patch)
tree76c55a908a0c340cfb0fd4a982fe6cf9343db0ae /core/qthelper.cpp
parentd508a16aca91b521719d929cd59db381c44cd7ad (diff)
downloadsubsurface-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>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp9
1 files changed, 0 insertions, 9 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())));