From 53aafb4800bb5125123a07044bc1ca26927344f1 Mon Sep 17 00:00:00 2001
From: Marko Petric <marko.petric@cern.ch>
Date: Wed, 3 Jul 2019 16:21:09 +0200
Subject: [PATCH] Logically dead code removal

---
 DDCore/src/plugins/CodeGenerator.cpp     | 2 +-
 DDCore/src/plugins/TGeoCodeGenerator.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/DDCore/src/plugins/CodeGenerator.cpp b/DDCore/src/plugins/CodeGenerator.cpp
index 59db43eeb..b8d4674f8 100644
--- a/DDCore/src/plugins/CodeGenerator.cpp
+++ b/DDCore/src/plugins/CodeGenerator.cpp
@@ -416,7 +416,7 @@ namespace {
       if ( mat->IsTranslation() )   {
         log << "\t Double_t trans[] = {";
         for(size_t i=0; tra && i<3; ++i)  {
-          log << (tra ? tra[i] : 0e0);
+          log << (tra[i]);
           log << ((i<2) ? sep : "};");
         }
         log << newline << "\t mat->SetTranslation(trans);" << newline;
diff --git a/DDCore/src/plugins/TGeoCodeGenerator.cpp b/DDCore/src/plugins/TGeoCodeGenerator.cpp
index 67d988f78..f7fc010c3 100644
--- a/DDCore/src/plugins/TGeoCodeGenerator.cpp
+++ b/DDCore/src/plugins/TGeoCodeGenerator.cpp
@@ -263,7 +263,7 @@ namespace {
       if ( mat->IsRotation() )   {
         log << "\t Double_t rot[] = {";
         for(size_t i=0; rot && i<9; ++i)  {
-          log << (rot ? rot[i] : 0e0);
+          log << (rot[i]);
           log << ((i<8) ? ", " : "};");
         }
         log << newline << "\t matrix_" << pvoid_t(mat) << "->SetRotation(rot);" << newline;
@@ -271,7 +271,7 @@ namespace {
       if ( mat->IsScale() )   {
         log << "\t Double_t scale[] = {";
         for(size_t i=0; sca && i<3; ++i)  {
-          log << (sca ? sca[i] : 0e0);
+          log << (sca[i]);
           log << ((i<2) ? ", " : "};");
         }
         log << newline << "\t matrix_" << pvoid_t(mat) << "->SetScale(scale);" << newline;
-- 
GitLab