testlib: Remove obsolete internal compare_helper overload.
Change-Id: Ic98faf360a713ac698f9bf1ff8aaad5a4c5c176b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
parent
bfd2b30faf
commit
054b69c963
@ -2440,21 +2440,6 @@ QObject *QTest::testObject()
|
||||
return currentTestObject;
|
||||
}
|
||||
|
||||
/*! \internal
|
||||
*/
|
||||
bool QTest::compare_helper(bool success, const char *msg, const char *file, int line)
|
||||
{
|
||||
static bool warned = false;
|
||||
if (!warned) {
|
||||
warned = true;
|
||||
QTest::qWarn("QTest::compare_helper(bool, const char *, const char *, int) is obsolete "
|
||||
"and will soon be removed. Please update your code to use the other "
|
||||
"version of this function.");
|
||||
}
|
||||
|
||||
return QTestResult::compare(success, msg, file, line);
|
||||
}
|
||||
|
||||
/*! \internal
|
||||
This function is called by various specializations of QTest::qCompare
|
||||
to decide whether to report a failure and to produce verbose test output.
|
||||
|
@ -198,8 +198,6 @@ namespace QTest
|
||||
Q_TESTLIB_EXPORT Qt::Key asciiToKey(char ascii);
|
||||
Q_TESTLIB_EXPORT char keyToAscii(Qt::Key key);
|
||||
|
||||
Q_TESTLIB_EXPORT bool compare_helper(bool success, const char *msg, const char *file,
|
||||
int line);
|
||||
Q_TESTLIB_EXPORT bool compare_helper(bool success, const char *failureMsg,
|
||||
char *val1, char *val2,
|
||||
const char *actual, const char *expected,
|
||||
|
@ -247,15 +247,6 @@ bool QTestResult::verify(bool statement, const char *statementStr,
|
||||
return checkStatement(statement, msg, file, line);
|
||||
}
|
||||
|
||||
bool QTestResult::compare(bool success, const char *msg, const char *file, int line)
|
||||
{
|
||||
if (QTestLog::verboseLevel() >= 2) {
|
||||
QTestLog::info(msg, file, line);
|
||||
}
|
||||
|
||||
return checkStatement(success, msg, file, line);
|
||||
}
|
||||
|
||||
bool QTestResult::compare(bool success, const char *failureMsg,
|
||||
char *val1, char *val2,
|
||||
const char *actual, const char *expected,
|
||||
|
@ -76,7 +76,6 @@ public:
|
||||
static void reset();
|
||||
|
||||
static void addFailure(const char *message, const char *file, int line);
|
||||
static bool compare(bool success, const char *msg, const char *file, int line);
|
||||
static bool compare(bool success, const char *failureMsg,
|
||||
char *val1, char *val2,
|
||||
const char *actual, const char *expected,
|
||||
|
Loading…
Reference in New Issue
Block a user