[Libreoffice-commits] core.git: idl/inc idl/source
Noel Grandin
noel at peralex.com
Thu Feb 4 13:06:46 UTC 2016
idl/inc/types.hxx | 1
idl/source/objects/types.cxx | 63 -------------------------------------------
2 files changed, 64 deletions(-)
New commits:
commit 7236df4fec03bc8f58f33a7aa43cef7e52e48882
Author: Noel Grandin <noel at peralex.com>
Date: Thu Feb 4 08:56:53 2016 +0200
remove unused Compare method
Change-Id: I12578410a27f613a064f293022280b5345117a9c
Reviewed-on: https://gerrit.libreoffice.org/22102
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/idl/inc/types.hxx b/idl/inc/types.hxx
index 25bca90..4f34275 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 f208f26..662e396 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: */
More information about the Libreoffice-commits
mailing list