mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0029269: Improvement for thread safety of the STEP translator - cleanup
Removal of unused stuff and some protections implemented within #29269
This commit is contained in:
@@ -52,14 +52,18 @@ void RWStepVisual_RWPresentationLayerAssignment::ReadStep
|
||||
Handle(StepVisual_HArray1OfLayeredItem) aAssignedItems;
|
||||
StepVisual_LayeredItem aAssignedItemsItem;
|
||||
Standard_Integer nsub3;
|
||||
if (data->ReadSubList (num,3,"assigned_items",ach,nsub3)) {
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
aAssignedItems = new StepVisual_HArray1OfLayeredItem (1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3 ++) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
if (data->ReadEntity (nsub3,i3,"assigned_items",ach,aAssignedItemsItem))
|
||||
aAssignedItems->SetValue(i3,aAssignedItemsItem);
|
||||
}
|
||||
if (data->ReadSubList(num, 3, "assigned_items", ach, nsub3)) {
|
||||
Standard_Integer nb3 = data->NbParams(nsub3);
|
||||
if (nb3)
|
||||
{
|
||||
|
||||
aAssignedItems = new StepVisual_HArray1OfLayeredItem(1, nb3);
|
||||
for (Standard_Integer i3 = 1; i3 <= nb3; i3++) {
|
||||
//szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
|
||||
if (data->ReadEntity(nsub3, i3, "assigned_items", ach, aAssignedItemsItem))
|
||||
aAssignedItems->SetValue(i3, aAssignedItemsItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--- Initialisation of the read entity ---
|
||||
|
Reference in New Issue
Block a user