From 3ac9b7af766f166a9cd8089ec49e54a48b31194b Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Tue, 29 May 2012 00:10:42 +0900 Subject: removed dead code Change-Id: Ic70d66befc90450aeb276d53f6da7e81aef85478 --- cppuhelper/source/propshlp.cxx | 74 ------------------------------------------ 1 file changed, 74 deletions(-) (limited to 'cppuhelper') diff --git a/cppuhelper/source/propshlp.cxx b/cppuhelper/source/propshlp.cxx index 082341941cb0..ce8ff96253ac 100644 --- a/cppuhelper/source/propshlp.cxx +++ b/cppuhelper/source/propshlp.cxx @@ -1057,65 +1057,10 @@ void OPropertySetHelper2::enableChangeListenerNotification( sal_Bool bEnable ) m_pReserved->m_bFireEvents = bEnable; } -#ifdef xdvnsdfln -// XPropertyState -PropertyState OPropertySetHelper::getPropertyState( const OUString& PropertyName ) -{ - PropertyState aState; - return aState; -} - -// XPropertyState -Sequence< PropertyState > OPropertySetHelper::getPropertyStates( const Sequence< OUString >& PropertyNames ) -{ - ULONG nNames = PropertyNames.getLength(); - - Sequence< PropertyState > aStates( nNames ); - return aStates; - -} - -void OPropertySetHelper::setPropertyToDefault( const OUString& aPropertyName ) -{ - setPropertyValue( aPropertyName, Any() ); -} - -Any OPropertySetHelper::getPropertyDefault( const OUString& aPropertyName ) const -{ - return Any(); -} - -void OPropertySetHelper::addPropertyStateChangeListener( const OUString& aPropertyName, const XPropertyStateChangeListenerRef& Listener ) -{ -} - -void OPropertySetHelper::removePropertyStateChangeListener( const OUString& aPropertyName, const XPropertyStateChangeListenerRef& Listener ) -{ -} -#endif - //======================================================================== //== OPropertyArrayHelper ================================================ //======================================================================== -//======================================================================== - -// static OUString makeOUString( sal_Char *p ) -// { -// sal_Int32 nLen = strlen(p); -// sal_Unicode *pw = new sal_Unicode[nLen]; - -// for( int i = 0 ; i < nLen ; i ++ ) { - -// // Only ascii strings allowed with this helper ! -// OSL_ASSERT( p[i] < 127 ); -// pw[i] = p[i]; -// } -// OUString ow( pw , nLen ); -// delete pw; -// return ow; -// } - extern "C" { static int compare_Property_Impl( const void *arg1, const void *arg2 ) @@ -1222,18 +1167,6 @@ sal_Bool OPropertyArrayHelper::fillPropertyMembersByHandle //======================================================================== Sequence< Property > OPropertyArrayHelper::getProperties(void) { - /*if( aInfos.getLength() != nElements ) - { - ((OPropertyArrayHelper *)this)->aInfos.realloc( nElements ); - Property * pProps = ((OPropertyArrayHelper *)this)->aInfos.getArray(); - for( sal_Int32 i = 0; i < nElements; i++ ) - { - pProps[i].Name = pProperties[i].Name; - pProps[i].Handle = pProperties[i].Handle; - pProps[i].Type = pProperties[i].Type; - pProps[i].Attributes = pProperties[i].Attributes; - } - }*/ return aInfos; } @@ -1248,13 +1181,6 @@ Property OPropertyArrayHelper::getPropertyByName(const OUString& aPropertyName) if( !pR ) { throw UnknownPropertyException(); } - - /*Property aProp; - aProp.Name = pR->Name; - aProp.Handle = pR->Handle; - aProp.Type = pR->Type; - aProp.Attributes = pR->Attributes; - return aProp;*/ return *pR; } -- cgit v1.2.3