summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/source/provider/resultsetmetadata.cxx21
-rw-r--r--ucbhelper/workben/myucp/myucp_content.cxx39
-rw-r--r--ucbhelper/workben/myucp/myucp_provider.cxx14
-rw-r--r--ucbhelper/workben/ucbexplorer/ucbexplorer.cxx6
4 files changed, 0 insertions, 80 deletions
diff --git a/ucbhelper/source/provider/resultsetmetadata.cxx b/ucbhelper/source/provider/resultsetmetadata.cxx
index 1bd820ccfd04..d7697fb92533 100644
--- a/ucbhelper/source/provider/resultsetmetadata.cxx
+++ b/ucbhelper/source/provider/resultsetmetadata.cxx
@@ -417,27 +417,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
UNO_QUERY );
if ( xInfo.is() )
{
-#if 0
- // Convenient...
- sal_Int32 nCount = m_pImpl->m_aProps.getLength();
- Property* pProps = m_pImpl->m_aProps.getArray();
- for ( sal_Int32 n = 0; n < nCount; ++n )
- {
- Property& rProp = pProps[ n ];
-
- try
- {
- Property aProp
- = xInfo->getPropertyByName( rProp.Name );
- rProp.Type = aProp.Type;
- }
- catch ( UnknownPropertyException& )
- {
- // getPropertyByName
- }
- }
-#else
// Less (remote) calls...
Sequence< Property > aProps = xInfo->getProperties();
@@ -461,7 +441,6 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
}
}
}
-#endif
}
}
catch ( RuntimeException& )
diff --git a/ucbhelper/workben/myucp/myucp_content.cxx b/ucbhelper/workben/myucp/myucp_content.cxx
index b547ebcd202a..a787ed64467f 100644
--- a/ucbhelper/workben/myucp/myucp_content.cxx
+++ b/ucbhelper/workben/myucp/myucp_content.cxx
@@ -124,12 +124,6 @@ uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
{
uno::Any aRet;
- // @@@ Add support for additional interfaces.
-#if 0
- aRet = cppu::queryInterface( rType,
- static_cast< yyy::Xxxxxxxxx * >( this ) );
-#endif
-
return aRet.hasValue() ? aRet : ContentImplHelper::queryInterface( rType );
}
@@ -534,14 +528,6 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
{
xRow->appendBoolean( rProp, rData.bIsFolder );
}
-
- // @@@ Process other properties supported directly.
-#if 0
- else if ( rProp.Name.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM( "xxxxxx" ) ) )
- {
- }
-#endif
else
{
// @@@ Note: If your data source supports adding/removing
@@ -734,13 +720,6 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
}
}
- // @@@ Process other properties supported directly.
-#if 0
- else if ( rValue.Name.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM( "xxxxxx" ) ) )
- {
- }
-#endif
else
{
// @@@ Note: If your data source supports adding/removing
@@ -885,24 +864,6 @@ void Content::insert(
// Check, if all required properties were set.
-#if 0
- // @@@ add checks for property presence
- if ( m_aProps.xxxx == yyyyy )
- {
- OSL_ENSURE( sal_False, "Content::insert - property value missing!" );
-
- uno::Sequence< rtl::OUString > aProps( 1 );
- aProps[ 0 ] = rtl::OUString::createFromAscii( "zzzz" );
- ::ucbhelper::cancelCommandExecution(
- uno::makeAny( ucb::MissingPropertiesException(
- rtl::OUString(),
- static_cast< cppu::OWeakObject * >( this ),
- aProps ) ),
- Environment );
- // Unreachable
- }
-#endif
-
bool bNeedInputStream = true; // @@@ adjust to real requirements
if ( bNeedInputStream && !xInputStream.is() )
{
diff --git a/ucbhelper/workben/myucp/myucp_provider.cxx b/ucbhelper/workben/myucp/myucp_provider.cxx
index eadad2e5c2a2..f51ec34e261c 100644
--- a/ucbhelper/workben/myucp/myucp_provider.cxx
+++ b/ucbhelper/workben/myucp/myucp_provider.cxx
@@ -131,21 +131,7 @@ uno::Reference< ucb::XContent > SAL_CALL ContentProvider::queryContent(
if ( !Identifier->getContentProviderScheme().equalsIgnoreAsciiCase( aScheme ) )
throw ucb::IllegalIdentifierException();
- // @@@ Further id checks may go here...
-#if 0
- if ( id-check-failes )
- throw ucb::IllegalIdentifierException();
-#endif
-
- // @@@ Id normalization may go here...
-#if 0
- // Normalize URL and create new Id.
- rtl::OUString aCanonicURL = xxxxx( Identifier->getContentIdentifier() );
- uno::Reference< ucb::XContentIdentifier > xCanonicId
- = new ::ucbhelper::ContentIdentifier( m_xSMgr, aCanonicURL );
-#else
uno::Reference< ucb::XContentIdentifier > xCanonicId = Identifier;
-#endif
osl::MutexGuard aGuard( m_aMutex );
diff --git a/ucbhelper/workben/ucbexplorer/ucbexplorer.cxx b/ucbhelper/workben/ucbexplorer/ucbexplorer.cxx
index 180ab1b0c3db..cd8b03453c44 100644
--- a/ucbhelper/workben/ucbexplorer/ucbexplorer.cxx
+++ b/ucbhelper/workben/ucbexplorer/ucbexplorer.cxx
@@ -1146,12 +1146,6 @@ void MyApp::Main()
MenuBar aMBMain( ResId( MENU_MAIN, *xManager.get() ) );
// Check for command line params
-#if 0
- for ( int i = 0; i < GetCommandLineParamCount(); ++i )
- {
- String aPara = GetCommandLineParam( i );
- }
-#endif
String aRootURL = GetCommandLineParam( 0 );
if ( aRootURL.Len() == 0 )