summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-22 19:53:41 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-03-22 19:53:41 +0100
commit25363b4e4594c610c643cd1025119bb6188677d1 (patch)
tree6f3eb4024431d87ebf1776323a52487216685c17 /idlc
parentf25fcba2f2ef699e8366d3681ae6c636798569a8 (diff)
coverity#440066 Logically dead code
Change-Id: I54d1b22859bd4f0a1e68ce79ed2ce4d7fbeb5107
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/astunion.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/idlc/source/astunion.cxx b/idlc/source/astunion.cxx
index 20daa677ec85..827dbbda61eb 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())
{