diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-04 08:56:53 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-04 13:06:26 +0000 |
commit | 7236df4fec03bc8f58f33a7aa43cef7e52e48882 (patch) | |
tree | a88773e664aed7ebd66a1c90b38448d92c801b9e /idl | |
parent | b5cf88fa1f4dbda954c383d5c3f91ac677f44a5b (diff) |
remove unused Compare method
Change-Id: I12578410a27f613a064f293022280b5345117a9c
Reviewed-on: https://gerrit.libreoffice.org/22102
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'idl')
-rw-r--r-- | idl/inc/types.hxx | 1 | ||||
-rw-r--r-- | idl/source/objects/types.cxx | 63 |
2 files changed, 0 insertions, 64 deletions
diff --git a/idl/inc/types.hxx b/idl/inc/types.hxx index 25bca906274d..4f342753689a 100644 --- a/idl/inc/types.hxx +++ b/idl/inc/types.hxx @@ -74,7 +74,6 @@ public: sal_uLong MakeSfx( OStringBuffer& rAtrrArray ); virtual void Insert( SvSlotElementList&, const OString& rPrefix, SvIdlDataBase& ); - OString Compare( SvMetaAttribute *pAttr ); }; typedef tools::SvRef<SvMetaAttribute> SvMetaAttributeRef; diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index f208f26ac99e..662e39644002 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -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: */ |