diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-04 09:41:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-05 08:01:42 +0200 |
commit | f811edfa9a0faaee2551be1fd9e401dfb4168a10 (patch) | |
tree | 28e2f37707d903d5d3aea26c55c3f7d4ad645d95 /idl | |
parent | fd97858e1a7eef0f311a38ee3be41f7548d2c174 (diff) |
remove unused Readonly from .SDI files
Change-Id: I179200ad65492c517ef5e986fd05758896d38813
Diffstat (limited to 'idl')
-rw-r--r-- | idl/inc/globals.hxx | 2 | ||||
-rw-r--r-- | idl/inc/types.hxx | 2 | ||||
-rw-r--r-- | idl/source/objects/types.cxx | 15 | ||||
-rw-r--r-- | idl/source/prj/command.cxx | 1 | ||||
-rw-r--r-- | idl/source/prj/globals.cxx | 1 |
5 files changed, 0 insertions, 21 deletions
diff --git a/idl/inc/globals.hxx b/idl/inc/globals.hxx index 50286b7dfd7b..b6165ab1c5fc 100644 --- a/idl/inc/globals.hxx +++ b/idl/inc/globals.hxx @@ -94,7 +94,6 @@ struct SvGlobalHashNames SvStringHashEntryRef MM_union; SvStringHashEntryRef MM_struct; SvStringHashEntryRef MM_typedef; - SvStringHashEntryRef MM_Readonly; SvStringHashEntryRef MM_SlotType; SvStringHashEntryRef MM_ModulePrefix; SvStringHashEntryRef MM_DisableFlags; @@ -187,7 +186,6 @@ HASH_INLINE(ReadOnlyDoc) HASH_INLINE(union) HASH_INLINE(struct) HASH_INLINE(typedef) -HASH_INLINE(Readonly) HASH_INLINE(SlotType) HASH_INLINE(ModulePrefix) HASH_INLINE(DisableFlags) diff --git a/idl/inc/types.hxx b/idl/inc/types.hxx index 1788775ab35e..6b8a0ae32e9b 100644 --- a/idl/inc/types.hxx +++ b/idl/inc/types.hxx @@ -37,7 +37,6 @@ class SvMetaAttribute : public SvMetaReference SvMetaTypeRef aType; SvIdentifier aSlotId; SvBOOL aExport; - SvBOOL aReadonly; SvBOOL aIsCollection; SvBOOL aReadOnlyDoc; SvBOOL aHidden; @@ -52,7 +51,6 @@ public: void SetNewAttribute( bool bNew ) { bNewAttr = bNew; } - bool GetReadonly() const; void SetSlotId( const SvIdentifier & rId ) { aSlotId = rId; } const SvIdentifier & GetSlotId() const; diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index 10d8e7c670e2..71312b1d1bf8 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -60,12 +60,6 @@ const SvIdentifier & SvMetaAttribute::GetSlotId() const return static_cast<SvMetaAttribute *>(GetRef())->GetSlotId(); } -bool SvMetaAttribute::GetReadonly() const -{ - if( aReadonly.IsSet() || !GetRef() ) return aReadonly; - return static_cast<SvMetaAttribute *>(GetRef())->GetReadonly(); -} - bool SvMetaAttribute::GetExport() const { if( aExport.IsSet() || !GetRef() ) return aExport; @@ -178,15 +172,6 @@ void SvMetaAttribute::ReadAttributesSvIdl( SvIdlDataBase & rBase, aHidden.ReadSvIdl( SvHash_Hidden(), rInStm ); aIsCollection.ReadSvIdl( SvHash_IsCollection(), rInStm ); aReadOnlyDoc.ReadSvIdl( SvHash_ReadOnlyDoc(), rInStm ); - if( aReadonly.ReadSvIdl( SvHash_Readonly(), rInStm ) ) - { - if( GetType()->GetType() == TYPE_METHOD ) - { - // set error - rBase.SetError( "Readonly in function attribute", rInStm.GetToken() ); - rBase.WriteError( rInStm ); - } - } } sal_uLong SvMetaAttribute::MakeSfx( OStringBuffer& rAttrArray ) diff --git a/idl/source/prj/command.cxx b/idl/source/prj/command.cxx index 1fdbef4a9dd3..30da37097624 100644 --- a/idl/source/prj/command.cxx +++ b/idl/source/prj/command.cxx @@ -88,7 +88,6 @@ char const * SyntaxStrings[] = { "\t\tImageReflection", "\t\tPseudoPrefix = Identifier", "\t\tPseudoSlots", -"\t\tReadOnly", "\t\tReadOnlyDoc*", "\t\tRecordPerSet*, RecordPerItem, NoRecord", "\t\tRecordAbsolute", diff --git a/idl/source/prj/globals.cxx b/idl/source/prj/globals.cxx index 4106eda5211d..89d4b16b23de 100644 --- a/idl/source/prj/globals.cxx +++ b/idl/source/prj/globals.cxx @@ -121,7 +121,6 @@ SvGlobalHashNames::SvGlobalHashNames() A_ENTRY(union) A_ENTRY(struct) A_ENTRY(typedef) - A_ENTRY(Readonly) A_ENTRY(SlotType) A_ENTRY(ModulePrefix) A_ENTRY(DisableFlags) |