From ab1813a4454cbe639e99eaee7cd1115bfed1cf8f Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 7 May 2017 09:41:27 +0300 Subject: Move intdup to qthelper Signed-off-by: Miika Turkia --- tests/testparse.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/testparse.cpp b/tests/testparse.cpp index 7195af75a..cb98e051f 100644 --- a/tests/testparse.cpp +++ b/tests/testparse.cpp @@ -4,6 +4,7 @@ #include "core/file.h" #include "core/divelist.h" #include +#include "core/qthelper.h" /* We have to use a macro since QCOMPARE * can only be called from a test method @@ -42,15 +43,6 @@ void TestParse::cleanup() sqlite3_close(_sqlite3_handle); } -char *intdup(int index) -{ - char tmpbuf[21]; - - snprintf(tmpbuf, sizeof(tmpbuf) - 2, "%d", index); - tmpbuf[20] = 0; - return strdup(tmpbuf); -} - int TestParse::parseCSV(int units, std::string file) { // some basic file parsing tests -- cgit v1.2.3-70-g09d2