diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-05 11:29:32 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-07 06:51:37 +0000 |
commit | 5d410b57bee6fe6e4ffcf9365874708f1b2a2662 (patch) | |
tree | 189ddb18c7c90c6a33ac002fb06a973e4503f859 /idl/source/prj/database.cxx | |
parent | 375cc8d2bed2689571b41a8d5d80dcf58440e6e6 (diff) |
remove CALL enum and associated code paths
not used
Change-Id: Ia000014d48ac6da92b396c4aa7b736c8a6f27149
Reviewed-on: https://gerrit.libreoffice.org/22148
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'idl/source/prj/database.cxx')
-rw-r--r-- | idl/source/prj/database.cxx | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx index 67c6c0a58f7e..3e69e54ae54c 100644 --- a/idl/source/prj/database.cxx +++ b/idl/source/prj/database.cxx @@ -283,10 +283,6 @@ SvMetaType * SvIdlDataBase::FindType( const OString& rName ) SvMetaType * SvIdlDataBase::ReadKnownType( SvTokenStream & rInStm ) { - int nCall0 = CALL_VALUE; - int nCall1 = CALL_VALUE; - bool bSet = false; // any attribute set - sal_uInt32 nTokPos = rInStm.Tell(); SvToken * pTok = rInStm.GetToken_Next(); @@ -316,37 +312,8 @@ SvMetaType * SvIdlDataBase::ReadKnownType( SvTokenStream & rInStm ) } if( pType ) { - pTok = &rInStm.GetToken(); - if( pTok->IsChar() ) - { - if( pTok->GetChar() == '&' || pTok->GetChar() == '*' ) - { - nCall0 = (pTok->GetChar() == '&') ? CALL_REFERENCE : - CALL_POINTER; - rInStm.GetToken_Next(); - pTok = &rInStm.GetToken(); - if( pTok->GetChar() == '&' || pTok->GetChar() == '*' ) - { - nCall1 = (pTok->GetChar() == '&') ? CALL_REFERENCE : - CALL_POINTER; - rInStm.GetToken_Next(); - } - bSet = true; - } - } - - if( !bSet ) - // is exactly this type - return pType; - - DBG_ASSERT( aTmpTypeList.front(), "mindestens ein Element" ); - tools::SvRef<SvMetaType> xType( new SvMetaType( pType->GetName().getString(), 'h', "dummy" ) ); - xType->SetRef( pType ); - xType->SetCall0( nCall0 ); - xType->SetCall1( nCall1 ); - - aTmpTypeList.push_back( xType ); - return xType; + // is exactly this type + return pType; } } rInStm.Seek( nTokPos ); |