From 9bf2d51927c3ac87b32b996a65bd30618b4ce58c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 14 Jun 2012 23:43:35 +0100 Subject: callcatcher: chainsaw out some unnecessary code Change-Id: I88de7a942fbc9e0c51a3261236f5203f037d2392 --- comphelper/inc/comphelper/property.hxx | 13 ------------- comphelper/source/property/property.cxx | 19 ------------------- 2 files changed, 32 deletions(-) (limited to 'comphelper') diff --git a/comphelper/inc/comphelper/property.hxx b/comphelper/inc/comphelper/property.hxx index a294b3363b5d..610ebfc04f06 100644 --- a/comphelper/inc/comphelper/property.hxx +++ b/comphelper/inc/comphelper/property.hxx @@ -87,19 +87,6 @@ namespace comphelper } }; -//------------------------------------------------------------------ -/** find property with given name - - @param o_rProp - Output parameter receiving the property, if found - - @param i_rPropName - Name of the property to find - - @return false, if property was not found - */ -COMPHELPER_DLLPUBLIC bool findProperty(starbeans::Property& o_rProp, staruno::Sequence& i_seqProps, const ::rtl::OUString& i_rPropName); - //------------------------------------------------------------------ /// remove the property with the given name from the given sequence COMPHELPER_DLLPUBLIC void RemoveProperty(staruno::Sequence& seqProps, const ::rtl::OUString& _rPropName); diff --git a/comphelper/source/property/property.cxx b/comphelper/source/property/property.cxx index 04a1aca5a761..34af9e5249be 100644 --- a/comphelper/source/property/property.cxx +++ b/comphelper/source/property/property.cxx @@ -150,25 +150,6 @@ sal_Bool hasProperty(const rtl::OUString& _rName, const Reference& return sal_False; } -//------------------------------------------------------------------ -bool findProperty(Property& o_rProp, - Sequence& i_seqProps, - const ::rtl::OUString& i_rPropName) -{ - const Property* pAry(i_seqProps.getConstArray()); - const sal_Int32 nLen(i_seqProps.getLength()); - const Property* pRes( - std::find_if(pAry,pAry+nLen, - boost::bind(PropertyStringEqualFunctor(), - _1, - boost::cref(i_rPropName)))); - if( pRes == pAry+nLen ) - return false; - - o_rProp = *pRes; - return true; -} - //------------------------------------------------------------------ void RemoveProperty(Sequence& _rProps, const rtl::OUString& _rPropName) { -- cgit