idlc/source/astunion.cxx |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit 25363b4e4594c610c643cd1025119bb6188677d1
Author: Julien Nabet <[email protected]>
Date:   Fri Mar 22 19:53:41 2013 +0100

    coverity#440066 Logically dead code
    
    Change-Id: I54d1b22859bd4f0a1e68ce79ed2ce4d7fbeb5107

diff --git a/idlc/source/astunion.cxx b/idlc/source/astunion.cxx
index 20daa67..827dbbd 100644
--- a/idlc/source/astunion.cxx
+++ b/idlc/source/astunion.cxx
@@ -47,12 +47,6 @@ AstUnion::AstUnion(const ::rtl::OString& name, AstType* 
pDiscType, AstScope* pSc
     if ( pDiscType->getNodeType() == NT_predefined )
     {
         pBaseType = (AstBaseType*)pDiscType;
-        if ( !pBaseType )
-        {
-            m_pDiscriminantType = NULL;
-            m_discExprType = ET_none;
-            return;
-        }
         m_pDiscriminantType = pDiscType;
         switch (pBaseType->getExprType())
         {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to