diff --git a/src/ifcgeom/mapping/IfcFixedReferenceSweptAreaSolid.cpp b/src/ifcgeom/mapping/IfcFixedReferenceSweptAreaSolid.cpp index 9bc33fe8fd..805d51b572 100644 --- a/src/ifcgeom/mapping/IfcFixedReferenceSweptAreaSolid.cpp +++ b/src/ifcgeom/mapping/IfcFixedReferenceSweptAreaSolid.cpp @@ -116,10 +116,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcFixedReferenceSweptAreaSolid } } else { taxonomy::matrix4::ptr matrix; - bool has_position = true; - has_position = inst->Position() != nullptr; - auto pos = inst->Position(); - if (has_position) { + if (inst->Position() != nullptr) { matrix = taxonomy::cast(map(inst->Position())); } // TODO: Implement handling for non-alignment curves using sweep_along_curve