Skip to content

Commit cae24a9

Browse files
committed
Fix warnings regarding unused variables.
1 parent 8b3d581 commit cae24a9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/ifcgeom/IfcGeomFunctions.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,9 +1294,7 @@ std::pair<std::string, double> IfcGeom::Kernel::initializeUnits(IfcSchema::IfcUn
12941294
Logger::Message(Logger::LOG_ERROR, "No unit information found");
12951295
} else {
12961296
for (IfcEntityList::it it = units->begin(); it != units->end(); ++it) {
1297-
std::string current_unit_name = "";
12981297
IfcUtil::IfcBaseClass* base = *it;
1299-
IfcSchema::IfcSIUnit* unit = 0;
13001298
if (base->is(IfcSchema::Type::IfcNamedUnit)) {
13011299
IfcSchema::IfcNamedUnit* named_unit = base->as<IfcSchema::IfcNamedUnit>();
13021300
if (named_unit->UnitType() == IfcSchema::IfcUnitEnum::IfcUnit_LENGTHUNIT ||
@@ -1387,7 +1385,7 @@ bool IfcGeom::Kernel::convert_layerset(const IfcSchema::IfcProduct* product, std
13871385
double u1, u2;
13881386
Handle_Geom_Curve axis_curve = BRep_Tool::Curve(axis_edge, u1, u2);
13891387

1390-
if (true) {
1388+
if (true) { /**< @todo Why always true? */
13911389
if (axis_curve->DynamicType() == STANDARD_TYPE(Geom_Line)) {
13921390
Handle_Geom_Line axis_line = Handle_Geom_Line::DownCast(axis_curve);
13931391
reference_surface = new Geom_Plane(axis_line->Lin().Location(), axis_line->Lin().Direction() ^ gp::DZ());

0 commit comments

Comments
 (0)