summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-25 01:49:02 +0800
committerMichael Meeks <michael.meeks@suse.com>2012-02-25 20:33:57 +0000
commit0333d2101acf36c9f44e5cc51ff6964d8a98920d (patch)
tree8069ae0040dd44a7a6c7d6a1356da6fd470ae1b2 /comphelper
parent552a9862f8a11d8e3b86eef710d91a322a3a2946 (diff)
Remove unused code in basegfx, comphelper
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/inc/comphelper/accimplaccess.hxx18
-rw-r--r--comphelper/inc/comphelper/mimeconfighelper.hxx2
-rw-r--r--comphelper/source/misc/accimplaccess.cxx12
-rw-r--r--comphelper/source/misc/mimeconfighelper.cxx16
4 files changed, 0 insertions, 48 deletions
diff --git a/comphelper/inc/comphelper/accimplaccess.hxx b/comphelper/inc/comphelper/accimplaccess.hxx
index fbbee6fbfde6..6f295eb8e0e5 100644
--- a/comphelper/inc/comphelper/accimplaccess.hxx
+++ b/comphelper/inc/comphelper/accimplaccess.hxx
@@ -134,24 +134,6 @@ namespace comphelper
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxNewParent
);
- /** sets or resets a state bit in the set of foreign-controlled states of the component.
-
- @param _rxComponent
- is the component which's state is to be (re)set
- @param _nState
- the state bit which should be affected. This should be one of the respective UNO constants.
- @param _bSet
- <TRUE/> if the bit should be set, <FALSE/> otherwise
- @return
- <TRUE/> in case of success, <FALSE/> otherwise. For error condition please look at
- <method>getImplementation</method>.
- */
- static sal_Bool setForeignControlledState(
- const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >& _rxComponent,
- const sal_Int16 _nState,
- const sal_Bool _bSet
- );
-
private:
COMPHELPER_DLLPRIVATE static const ::com::sun::star::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId();
diff --git a/comphelper/inc/comphelper/mimeconfighelper.hxx b/comphelper/inc/comphelper/mimeconfighelper.hxx
index c8eeed153015..4ca3ae7b3adf 100644
--- a/comphelper/inc/comphelper/mimeconfighelper.hxx
+++ b/comphelper/inc/comphelper/mimeconfighelper.hxx
@@ -120,8 +120,6 @@ public:
::rtl::OUString UpdateMediaDescriptorWithFilterName(
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMediaDescr,
::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObject );
- sal_Bool AddFilterNameCheckOwnFile(
- ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMediaDescr );
::rtl::OUString GetDefaultFilterFromServiceName( const ::rtl::OUString& aServName, sal_Int32 nVersion );
diff --git a/comphelper/source/misc/accimplaccess.cxx b/comphelper/source/misc/accimplaccess.cxx
index f7a0da3bc141..18fac987d578 100644
--- a/comphelper/source/misc/accimplaccess.cxx
+++ b/comphelper/source/misc/accimplaccess.cxx
@@ -107,18 +107,6 @@ namespace comphelper
m_pImpl->m_nForeignControlledStates &= ~nBitMask;
}
- //---------------------------------------------------------------------
- sal_Bool OAccessibleImplementationAccess::setForeignControlledState( const Reference< XAccessibleContext >& _rxComponent, const sal_Int16 _nState,
- const sal_Bool _bSet )
- {
- OAccessibleImplementationAccess* pImplementation = getImplementation( _rxComponent );
-
- if ( pImplementation )
- pImplementation->setStateBit( _nState, _bSet );
-
- return ( NULL != pImplementation );
- }
-
namespace { struct lcl_ImplId : public rtl::Static< ::cppu::OImplementationId, lcl_ImplId > {}; }
//---------------------------------------------------------------------
diff --git a/comphelper/source/misc/mimeconfighelper.cxx b/comphelper/source/misc/mimeconfighelper.cxx
index 4416415a6444..168c27909a74 100644
--- a/comphelper/source/misc/mimeconfighelper.cxx
+++ b/comphelper/source/misc/mimeconfighelper.cxx
@@ -705,22 +705,6 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu
return UpdateMediaDescriptorWithFilterName( aMediaDescr, sal_True );
}
-sal_Bool MimeConfigurationHelper::AddFilterNameCheckOwnFile(
- uno::Sequence< beans::PropertyValue >& aMediaDescr )
-{
- sal_Bool bResult = sal_False;
-
- ::rtl::OUString aFilterName = UpdateMediaDescriptorWithFilterName( aMediaDescr, sal_False );
- if ( !aFilterName.isEmpty() )
- {
- sal_Int32 nFlags = GetFilterFlags( aFilterName );
- // check the OWN flag
- bResult = ( nFlags & SFX_FILTER_OWN );
- }
-
- return bResult;
-}
-
//-----------------------------------------------------------
::rtl::OUString MimeConfigurationHelper::GetDefaultFilterFromServiceName( const ::rtl::OUString& aServiceName, sal_Int32 nVersion )
{