diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-05 11:52:10 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-07 06:54:39 +0000 |
commit | 0b7337bfa049f4e3a8b87f7628025e40f5b3e825 (patch) | |
tree | f729413968d640829f92ddda0d0292cf456754af /idl/source/objects/basobj.cxx | |
parent | e90f4e18fd53bd85cc953eb2e796d593ae3f79df (diff) |
remove some dead code, found using LCOV
Change-Id: Ibdca0a70722290bbb560726c88e9821c3ae0af14
Reviewed-on: https://gerrit.libreoffice.org/22151
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'idl/source/objects/basobj.cxx')
-rw-r--r-- | idl/source/objects/basobj.cxx | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/idl/source/objects/basobj.cxx b/idl/source/objects/basobj.cxx index 9d52d9326b20..a9ddcf8de4e7 100644 --- a/idl/source/objects/basobj.cxx +++ b/idl/source/objects/basobj.cxx @@ -66,22 +66,22 @@ SvMetaObject::SvMetaObject() { } -bool SvMetaObject::SetName( const OString& rName, SvIdlDataBase * ) +void SvMetaObject::SetName( const OString& rName ) { aName.setString(rName); - return true; } -bool SvMetaObject::ReadNameSvIdl( SvIdlDataBase & rBase, - SvTokenStream & rInStm ) +bool SvMetaObject::ReadNameSvIdl( SvTokenStream & rInStm ) { sal_uInt32 nTokPos = rInStm.Tell(); SvToken * pTok = rInStm.GetToken_Next(); // read module name if( pTok->IsIdentifier() ) - if( SetName( pTok->GetString(), &rBase ) ) - return true; + { + SetName( pTok->GetString() ); + return true; + } rInStm.Seek( nTokPos ); return false; @@ -94,17 +94,14 @@ void SvMetaObject::ReadAttributesSvIdl( SvIdlDataBase & rBase, } void SvMetaObject::DoReadContextSvIdl( SvIdlDataBase & rBase, - SvTokenStream & rInStm, char cDel ) + SvTokenStream & rInStm ) { sal_uInt32 nBeginPos = 0; // can not happen with Tell while( nBeginPos != rInStm.Tell() ) { nBeginPos = rInStm.Tell(); ReadContextSvIdl( rBase, rInStm ); - if( cDel == '\0' ) - rInStm.ReadDelemiter(); - else - (void)rInStm.Read( cDel ); + rInStm.ReadDelemiter(); } } @@ -158,12 +155,6 @@ SvMetaExtern::SvMetaExtern() { } -SvMetaModule * SvMetaExtern::GetModule() const -{ - DBG_ASSERT( pModule != nullptr, "module not set" ); - return pModule; -} - void SvMetaExtern::SetModule( SvIdlDataBase & rBase ) { pModule = static_cast<SvMetaModule *>(rBase.GetStack().Get( checkSvMetaObject<SvMetaModule> )); |