diff options
author | Anders Jonsson <anders.jonsson@norsjonet.se> | 2011-01-11 00:44:39 +0100 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-01-10 19:28:58 -0600 |
commit | 9efbf8c9a620e5d7c7661b891ebf78ee54f5f086 (patch) | |
tree | 6b48524156095826551300895a07589e55a17e17 /framework/test | |
parent | 65885f16185aa0237e254370a4289d6eefc7bec7 (diff) |
Remove commented code
Diffstat (limited to 'framework/test')
-rw-r--r-- | framework/test/test.cxx | 47 | ||||
-rw-r--r-- | framework/test/typecfg/xml2xcd.cxx | 47 |
2 files changed, 1 insertions, 93 deletions
diff --git a/framework/test/test.cxx b/framework/test/test.cxx index 0b6376ba34de..0fa0813ee13a 100644 --- a/framework/test/test.cxx +++ b/framework/test/test.cxx @@ -369,52 +369,7 @@ void TestApplication::impl_testFilterCache() } else { -/* - // Step over all types and log his values. - // These simulate a XNameAccess! - const Sequence< OUString > seqAllTypeNames = aCache.getAllTypeNames(); - sal_uInt32 nCount = seqAllTypeNames.getLength(); - for( sal_uInt32 nPosition=0; nPosition<nCount; ++nPosition ) - { - sBuffer.appendAscii( "--------------------------------------------------------------------------------\n" ); - const TType* pType = aCache.getTypeByName( seqAllTypeNames[nPosition] ); - if( pType == NULL ) - { - sBuffer.appendAscii ( "Type [" ); - sBuffer.append ( (sal_Int32)nPosition ); - sBuffer.appendAscii ( "] \"" ); - sBuffer.append ( seqAllTypeNames[nPosition]); - sBuffer.appendAscii ( "\" isn't valid!" ); - } - else - { - sBuffer.appendAscii ( "Type [" ); - sBuffer.append ( (sal_Int32)nPosition ); - sBuffer.appendAscii ( "] \"" ); - sBuffer.append ( seqAllTypeNames[nPosition] ); - sBuffer.appendAscii ( "\"\n\t\tUIName\t=\t" ); - sBuffer.append ( pType->sUIName ); - sBuffer.appendAscii ( "\n\t\tMediaType\t=\t" ); - sBuffer.append ( pType->sMediaType ); - sBuffer.appendAscii ( "\n\t\tClipboardFormat\t=\t" ); - sBuffer.append ( pType->sClipboardFormat ); - sBuffer.appendAscii ( "\n\t\tURLPattern\t=\t{" ); - for( TConstStringIterator aIterator=pType->lURLPattern.begin(); aIterator!=pType->lURLPattern.end(); ++aIterator ) - { - sBuffer.append ( *aIterator ); - sBuffer.appendAscii ( ";\n\t\t" ); - } - sBuffer.appendAscii( "}\nExtensions\t=\t" ); - for( aIterator=pType->lExtensions.begin(); aIterator!=pType->lExtensions.end(); ++aIterator ) - { - sBuffer.append ( *aIterator ); - sBuffer.appendAscii ( ";\n\t\t" ); - } - sBuffer.appendAscii ( "}\nDocumentIconID\t=\t" ); - sBuffer.append ( (sal_Int32)pType->nDocumentIconID ); - } - } -*/ + // searchFirstType( URL, MediaType, ClipboardFormat, startEntry ) TCheckedTypeIterator aIterator; sBuffer.appendAscii( "search type for \"file://c|/temp/test.sdw\"; no media type; no clipboard format\n" ); diff --git a/framework/test/typecfg/xml2xcd.cxx b/framework/test/typecfg/xml2xcd.cxx index 0013542bfce1..cfd874081863 100644 --- a/framework/test/typecfg/xml2xcd.cxx +++ b/framework/test/typecfg/xml2xcd.cxx @@ -2310,53 +2310,6 @@ sal_Bool XCDGenerator::impl_isUsAsciiAlphaDigit(sal_Unicode c, sal_Bool bDigitAl ::rtl::OUString XCDGenerator::impl_encodeSetName( const ::rtl::OUString& rSource ) { return impl_encodeSpecialSigns( rSource ); -/* - rtl::OUStringBuffer aTarget; - - sal_Unicode const * pBegin = rSource.getStr(); - sal_Unicode const * pEnd = pBegin + rSource.getLength(); - sal_Unicode const * pCopyEnd = pBegin; - sal_Unicode const * p = pBegin; - while (p != pEnd) - { - sal_Unicode c = *p; - if (!impl_isUsAsciiAlphaDigit(c,p != pBegin)) - switch (c) - { - case '-': - case '.': - if (p != pBegin) - break; - default: - aTarget.append(pCopyEnd, p - pCopyEnd); - aTarget.append(sal_Unicode('_')); - ModifiedUTF7Buffer aBuffer(&aTarget); - for (;;) - { - aBuffer.write(c); - ++p; - if (p == pEnd) - break; - c = *p; - if (impl_isUsAsciiAlphaDigit(c) || c == '-' || c == '.') - break; - } - aBuffer.flush(); - aTarget.append(sal_Unicode('_')); - pCopyEnd = p; - continue; - } - ++p; - } - - if (pCopyEnd == pBegin) - return rSource; - else - { - aTarget.append(pCopyEnd, pEnd - pCopyEnd); - return aTarget.makeStringAndClear(); - } -*/ } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |