diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-03 16:28:34 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-04 11:39:23 +0000 |
commit | 5ec98c76986c1fe004fe10b1a003618d74a2c5d3 (patch) | |
tree | 1262dc714be11f411ca423e194b7906addf3dedb /idl/source | |
parent | 16431492441e742fbbbfc73ba0b715a91ec3ee45 (diff) |
remove unused Synchron from SDI files
Change-Id: I0b8c63a97bfa4a49ac87869e164ab22d2aa99de3
Reviewed-on: https://gerrit.libreoffice.org/22097
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'idl/source')
-rw-r--r-- | idl/source/objects/slot.cxx | 17 | ||||
-rw-r--r-- | idl/source/prj/command.cxx | 2 | ||||
-rw-r--r-- | idl/source/prj/globals.cxx | 1 |
3 files changed, 3 insertions, 17 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 4d5782fdf333..fbb560fa6ba8 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -34,8 +34,7 @@ SvMetaObject *SvMetaSlot::MakeClone() const } SvMetaSlot::SvMetaSlot() - : aSynchron( true, false ) - , aRecordPerSet( true, false ) + : aRecordPerSet( true, false ) , aRecordAbsolute( false, false ) , pLinkedSlot(nullptr) , pNextSlot(nullptr) @@ -46,7 +45,6 @@ SvMetaSlot::SvMetaSlot() SvMetaSlot::SvMetaSlot( SvMetaType * pType ) : SvMetaAttribute( pType ) - , aSynchron( true, false ) , aRecordPerSet( true, false ) , aRecordAbsolute( false, false ) , pLinkedSlot(nullptr) @@ -148,17 +146,10 @@ bool SvMetaSlot::GetAutoUpdate() const if( aAutoUpdate.IsSet() || !GetRef() ) return aAutoUpdate; return static_cast<SvMetaSlot *>(GetRef())->GetAutoUpdate(); } -bool SvMetaSlot::GetSynchron() const -{ - // Synchron and Asynchron are exclusive - if( !GetRef() || aSynchron.IsSet() || aAsynchron.IsSet() ) - return aSynchron; - return static_cast<SvMetaSlot *>(GetRef())->GetSynchron(); -} bool SvMetaSlot::GetAsynchron() const { // Synchron and Asynchron are exclusive - if( !GetRef() || aAsynchron.IsSet() || aSynchron.IsSet() ) + if( !GetRef() || aAsynchron.IsSet() ) return aAsynchron; return static_cast<SvMetaSlot *>(GetRef())->GetAsynchron(); } @@ -293,8 +284,6 @@ void SvMetaSlot::ReadAttributesSvIdl( SvIdlDataBase & rBase, if( aAutoUpdate.ReadSvIdl( SvHash_AutoUpdate(), rInStm ) ) SetAutoUpdate( aAutoUpdate ), bOk = true; - if( aSynchron.ReadSvIdl( SvHash_Synchron(), rInStm ) ) - SetSynchron( aSynchron ), bOk = true; if( aAsynchron.ReadSvIdl( SvHash_Asynchron(), rInStm ) ) SetAsynchron( aAsynchron ), bOk = true; @@ -821,8 +810,6 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount, rOutStm.WriteCharPtr( MakeSlotName( SvHash_Toggle() ).getStr() ).WriteChar( '|' ); if( GetAutoUpdate() ) rOutStm.WriteCharPtr( MakeSlotName( SvHash_AutoUpdate() ).getStr() ).WriteChar( '|' ); - if( GetSynchron() ) - rOutStm.WriteCharPtr( MakeSlotName( SvHash_Synchron() ).getStr() ).WriteChar( '|' ); if( GetAsynchron() ) rOutStm.WriteCharPtr( MakeSlotName( SvHash_Asynchron() ).getStr() ).WriteChar( '|' ); if( GetRecordPerItem() ) diff --git a/idl/source/prj/command.cxx b/idl/source/prj/command.cxx index b1c87083f697..6e6afd3c8711 100644 --- a/idl/source/prj/command.cxx +++ b/idl/source/prj/command.cxx @@ -95,7 +95,7 @@ char const * SyntaxStrings[] = { "\t\tRecordPerSet*, RecordPerItem, RecordManual, NoRecord", "\t\tRecordAbsolute", "\t\tStateMethod = Identifier", -"\t\tSynchron*, Asynchron", +"\t\tAsynchron", "\t\tToggle", "\t']'\n", diff --git a/idl/source/prj/globals.cxx b/idl/source/prj/globals.cxx index c5d1c7658efd..b8357d8c5c0c 100644 --- a/idl/source/prj/globals.cxx +++ b/idl/source/prj/globals.cxx @@ -73,7 +73,6 @@ SvGlobalHashNames::SvGlobalHashNames() , MM_SlotId( INS( "SlotId" ) ) , MM_Toggle( INS( "Toggle" ) ) , MM_AutoUpdate( INS( "AutoUpdate" ) ) - , MM_Synchron( INS( "Synchron" ) ) , MM_Asynchron( INS( "Asynchron" ) ) A_ENTRY(RecordPerSet) A_ENTRY(RecordPerItem) |