Skip to content

Commit 32a25c2

Browse files
committed
fix: remove dead birkConstant branch in getMaterialPropertyFromString
Remove unreachable branch that tested for "birkConstant" (typo, missing 's'). The canonical key is "birksConstant" but Birks constant is loaded via assign_if_set, not name-dispatch — so this branch was dead code. Fixes #138
1 parent b44333f commit 32a25c2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

gemc/gsystem/gmaterial.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ void GMaterial::getMaterialPropertyFromString(const std::string &parameter, cons
136136
slowtimeconstant = gutilities::getG4Number(trimmedComponent);
137137
} else if (propertyName == "yieldratio") {
138138
yieldratio = gutilities::getG4Number(trimmedComponent);
139-
} else if (propertyName == "birkConstant") {
140-
birksConstant = gutilities::getG4Number(trimmedComponent);
141139
} else if (propertyName == "rayleigh") {
142140
rayleigh.push_back(gutilities::getG4Number(trimmedComponent));
143141
}

0 commit comments

Comments
 (0)