From f49bd470990b838bb2c1a79605621e2d8c786a0b Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Fri, 21 Oct 2011 16:48:12 +1000 Subject: Remove legacy Symbian code from qtestlib. Change-Id: Ia4ac52ce0b5f5a4ba1fcd6594daf424fd7208777 Reviewed-by: Rohan McGovern --- src/testlib/qplaintestlogger.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/testlib/qplaintestlogger.cpp') diff --git a/src/testlib/qplaintestlogger.cpp b/src/testlib/qplaintestlogger.cpp index b9ede07704..45fc882492 100644 --- a/src/testlib/qplaintestlogger.cpp +++ b/src/testlib/qplaintestlogger.cpp @@ -55,10 +55,6 @@ #include #endif -#if defined(Q_OS_SYMBIAN) -#include -#endif - #ifdef Q_OS_WINCE #include #endif @@ -217,27 +213,6 @@ void QPlainTestLogger::outputMessage(const char *str) // OutputDebugString is not threadsafe OutputDebugStringA(str); LeaveCriticalSection(&QTest::outputCriticalSection); -#elif defined(Q_OS_SYMBIAN) - // RDebug::Print has a cap of 256 characters so break it up - TPtrC8 ptr(reinterpret_cast(str)); - _LIT(format, "[QTestLib] %S"); - const int maxBlockSize = 256 - ((const TDesC &)format).Length(); - HBufC* hbuffer = HBufC::New(maxBlockSize); - if (hbuffer) { - for (int i = 0; i < ptr.Length(); i += maxBlockSize) { - int size = Min(maxBlockSize, ptr.Length() - i); - hbuffer->Des().Copy(ptr.Mid(i, size)); - RDebug::Print(format, hbuffer); - } - delete hbuffer; - } - else { - // fast, no allocations, but truncates silently - RDebug::RawPrint(format); - TPtrC8 ptr(reinterpret_cast(str)); - RDebug::RawPrint(ptr); - RDebug::RawPrint(_L8("\n")); - } #endif outputString(str); } -- cgit v1.2.3