summaryrefslogtreecommitdiff
path: root/ucb/workben
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas.kanapickas@gmail.com>2010-10-18 19:37:48 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-18 19:38:00 +0100
commitbc8fcf207ffeee1dd6fb4a361b0ad5c5def21beb (patch)
tree43f54910146344613e641bd0b54cee3069292624 /ucb/workben
parent34f1c06830ae530bea4f11aca91e2836a53fd764 (diff)
remove non-compiled code
Diffstat (limited to 'ucb/workben')
-rw-r--r--ucb/workben/ucb/ucbdemo.cxx44
1 files changed, 2 insertions, 42 deletions
diff --git a/ucb/workben/ucb/ucbdemo.cxx b/ucb/workben/ucb/ucbdemo.cxx
index da536a28baf4..32f253f1be47 100644
--- a/ucb/workben/ucb/ucbdemo.cxx
+++ b/ucb/workben/ucb/ucbdemo.cxx
@@ -439,21 +439,11 @@ sal_Bool Ucb::init()
aArgs[1] <<= m_aConfigurationKey2;
aArgs[2] <<= rtl::OUString::createFromAscii("PIPE");
aArgs[3] <<= aPipe;
-#if 0
- m_xProv
- = uno::Reference< XContentProvider >(
- m_xFac->
- createInstanceWithArguments(
- rtl::OUString::createFromAscii(
- "com.sun.star.ucb."
- "UniversalContentBroker"),
- aArgs),
- uno::UNO_QUERY);
-#else
+
::ucbhelper::ContentBroker::initialize( m_xFac, aArgs );
m_xProv
= ::ucbhelper::ContentBroker::get()->getContentProviderInterface();
-#endif
+
}
catch (uno::Exception const &) {}
@@ -1311,36 +1301,6 @@ void UcbContent::transfer( const rtl::OUString& rSourceURL, sal_Bool bMove )
m_rUCB.getContentProvider(), uno::UNO_QUERY );
if ( xCommandProcessor.is() )
{
-
-#if 0
- ucb::Command aCommand(
- rtl::OUString::createFromAscii( "getCommandInfo" ), -1, Any() );
- uno::Reference< ucb::XCommandInfo > xInfo;
- xCommandProcessor->execute(
- aCommand, 0, uno::Reference< ucb::XCommandEnvironment >() )
- >>= xInfo;
- if ( xInfo.is() )
- {
- ucb::CommandInfo aInfo
- = xInfo->getCommandInfoByName(
- rtl::OUString::createFromAscii( "globalTransfer" ) );
-
- uno::Sequence< ucb::CommandInfo > aCommands
- = xInfo->getCommands();
- const ucb::CommandInfo* pCommands = aCommands.getConstArray();
-
- String aText( UniString::CreateFromAscii(
- RTL_CONSTASCII_STRINGPARAM( "Commands:\n" ) ) );
- sal_uInt32 nCount = aCommands.getLength();
- for ( sal_uInt32 n = 0; n < nCount; ++n )
- {
- aText.AppendAscii( RTL_CONSTASCII_STRINGPARAM( " " ) );
- aText += String( pCommands[ n ].Name );
- aText += '\n';
- }
- print( aText );
- }
-#endif
ucb::GlobalTransferCommandArgument aArg(
bMove ? ucb::TransferCommandOperation_MOVE
: ucb::TransferCommandOperation_COPY,