summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-14 23:43:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-15 15:41:13 +0100
commit9bf2d51927c3ac87b32b996a65bd30618b4ce58c (patch)
treea83e3fa81029982c5c5d311bff401eae54f52e66 /comphelper
parentf03a3edf2523c208948059861e0df48567834d0d (diff)
callcatcher: chainsaw out some unnecessary code
Change-Id: I88de7a942fbc9e0c51a3261236f5203f037d2392
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/inc/comphelper/property.hxx13
-rw-r--r--comphelper/source/property/property.cxx19
2 files changed, 0 insertions, 32 deletions
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
@@ -88,19 +88,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<starbeans::Property>& i_seqProps, const ::rtl::OUString& i_rPropName);
-
-//------------------------------------------------------------------
/// remove the property with the given name from the given sequence
COMPHELPER_DLLPUBLIC void RemoveProperty(staruno::Sequence<starbeans::Property>& 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
@@ -151,25 +151,6 @@ sal_Bool hasProperty(const rtl::OUString& _rName, const Reference<XPropertySet>&
}
//------------------------------------------------------------------
-bool findProperty(Property& o_rProp,
- Sequence<Property>& 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<Property>& _rProps, const rtl::OUString& _rPropName)
{
sal_Int32 nLen = _rProps.getLength();