summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-27 07:51:25 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-27 07:51:51 +0200
commit9a741fcad458875a806295ddbd41b68d82ce9095 (patch)
tree9d8ed908f43b459e221aef8a7d1da4b043ebbe40 /extensions
parent3c6e378fd81b2bfd8a35e12557a90fa40428920e (diff)
loplugin:unreffun: also warn about unused function templates
Change-Id: I4a6280f47ca3c4a77b4e42fe05d79ded7fc30ef1
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/xsddatatypes.cxx37
1 files changed, 0 insertions, 37 deletions
diff --git a/extensions/source/propctrlr/xsddatatypes.cxx b/extensions/source/propctrlr/xsddatatypes.cxx
index 2abf09f0d8fd..27c60277371e 100644
--- a/extensions/source/propctrlr/xsddatatypes.cxx
+++ b/extensions/source/propctrlr/xsddatatypes.cxx
@@ -34,24 +34,6 @@ namespace pcr
using namespace ::com::sun::star::xsd;
using namespace ::com::sun::star::beans;
-
- //= helper
-
-
- template< typename INTERFACE, typename ARGUMENT >
- void setSave( INTERFACE* pObject, void ( SAL_CALL INTERFACE::*pSetter )( ARGUMENT ), ARGUMENT _rArg )
- {
- try
- {
- (pObject->*pSetter)( _rArg );
- }
- catch( const Exception& )
- {
- OSL_FAIL( "XSDDataType: setSave: caught an exception!" );
- }
- }
-
-
template< typename INTERFACE, typename ARGUMENT >
ARGUMENT getSave( INTERFACE* pObject, ARGUMENT ( SAL_CALL INTERFACE::*pGetter )( ) )
{
@@ -67,25 +49,6 @@ namespace pcr
return aReturn;
}
- template< typename FACETTYPE >
- FACETTYPE getFacet( const Reference< XPropertySet >& _rxFacets, const OUString& _rFacetName )
- {
- FACETTYPE aReturn;
- try
- {
- OSL_VERIFY( _rxFacets->getPropertyValue( _rFacetName ) >>= aReturn );
- }
- catch( const Exception& )
- {
- OSL_FAIL( "XSDDataType: getFacet: caught an exception!" );
- }
- return aReturn;
- }
-
-
- //= XSDDataType
-
-
XSDDataType::XSDDataType( const Reference< XDataType >& _rxDataType )
:m_xDataType( _rxDataType )
,m_refCount( 0 )