Kaydet (Commit) 7236df4f authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

remove unused Compare method

Change-Id: I12578410a27f613a064f293022280b5345117a9c
Reviewed-on: https://gerrit.libreoffice.org/22102Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst b5cf88fa
...@@ -74,7 +74,6 @@ public: ...@@ -74,7 +74,6 @@ public:
sal_uLong MakeSfx( OStringBuffer& rAtrrArray ); sal_uLong MakeSfx( OStringBuffer& rAtrrArray );
virtual void Insert( SvSlotElementList&, const OString& rPrefix, virtual void Insert( SvSlotElementList&, const OString& rPrefix,
SvIdlDataBase& ); SvIdlDataBase& );
OString Compare( SvMetaAttribute *pAttr );
}; };
typedef tools::SvRef<SvMetaAttribute> SvMetaAttributeRef; typedef tools::SvRef<SvMetaAttribute> SvMetaAttributeRef;
......
...@@ -740,67 +740,4 @@ SvMetaTypevoid::SvMetaTypevoid() ...@@ -740,67 +740,4 @@ SvMetaTypevoid::SvMetaTypevoid()
{ {
} }
OString SvMetaAttribute::Compare( SvMetaAttribute* pAttr )
{
OStringBuffer aStr;
if ( aType.Is() )
{
if ( aType->GetType() == TYPE_METHOD )
{
// Test only when the attribute is a method not if it has one!
if ( pAttr->GetType()->GetType() != TYPE_METHOD )
aStr.append(" IsMethod\n");
else if ( aType->GetReturnType() &&
aType->GetReturnType()->GetType() != pAttr->GetType()->GetReturnType()->GetType() )
{
aStr.append(" ReturnType\n");
}
if ( aType->GetAttrCount() )
{
sal_uLong nCount = aType->GetAttrCount();
SvMetaAttributeMemberList& rList = aType->GetAttrList();
SvMetaAttributeMemberList& rOtherList = pAttr->GetType()->GetAttrList();
if ( pAttr->GetType()->GetAttrCount() != nCount )
{
aStr.append(" AttributeCount\n");
}
else
{
for ( sal_uLong n=0; n<nCount; n++ )
{
SvMetaAttribute *pAttr1 = rList[n];
SvMetaAttribute *pAttr2 = rOtherList[n];
pAttr1->Compare( pAttr2 );
}
}
}
}
if ( GetType()->GetType() != pAttr->GetType()->GetType() )
aStr.append(" Type\n");
if ( !GetType()->GetSvName().equals( pAttr->GetType()->GetSvName() ) )
aStr.append(" ItemType\n");
}
if ( GetExport() != pAttr->GetExport() )
aStr.append(" Export\n");
if ( GetAutomation() != pAttr->GetAutomation() )
aStr.append(" Automation\n");
if ( GetIsCollection() != pAttr->GetIsCollection() )
aStr.append(" IsCollection\n");
if ( GetReadOnlyDoc() != pAttr->GetReadOnlyDoc() )
aStr.append(" ReadOnlyDoc\n");
if ( GetExport() && GetReadonly() != pAttr->GetReadonly() )
aStr.append(" Readonly\n");
return aStr.makeStringAndClear();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment