mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0024510: Remove unused local variables
When warnings are enabled, compilers report lots of occurrences of unused local variables, which makes it harder to find other meaningful warnings. This commit does not fix all unused local variables. Fix new type conversion warning Code cleaned to avoid MSVC compiler warnings on unused function arguments. Several useless pieces of code are removed. Changes in IntTools_EdgeFace.cxx, Blend_Walking_1.gxx, Bnd_BoundSortBox.cxx, ProjLib_ProjectedCurve.cxx are reverted (separated to specific issue for more in-depth analysis).
This commit is contained in:
@@ -80,7 +80,6 @@ void TDF_CopyLabel::ExternalReferences(const TDF_Label& aRefLabel, const TDF_Lab
|
||||
Handle(TDF_DataSet)& ds)
|
||||
{
|
||||
// TCollection_AsciiString entr1,entr2; //d
|
||||
Standard_Boolean extRefFound = Standard_False;
|
||||
for (TDF_AttributeIterator itr(aLabel); itr.More(); itr.Next()) {
|
||||
itr.Value()->References(ds);
|
||||
const TDF_AttributeMap& attMap = ds->Attributes(); //attMap
|
||||
@@ -96,7 +95,6 @@ void TDF_CopyLabel::ExternalReferences(const TDF_Label& aRefLabel, const TDF_Lab
|
||||
if (aFilter.IsKept(att) && att->Label().IsDifferent(aRefLabel) &&
|
||||
!att->Label().IsDescendant(aRefLabel)) {
|
||||
aExternals.Add(att);
|
||||
extRefFound = Standard_True;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -117,7 +115,6 @@ void TDF_CopyLabel::ExternalReferences(const TDF_Label& aRefLabel, const TDF_Lab
|
||||
// }
|
||||
// }
|
||||
|
||||
extRefFound = Standard_False;
|
||||
ds->Clear();
|
||||
}
|
||||
}
|
||||
|
@@ -154,17 +154,17 @@ void TDF_Delta::Apply()
|
||||
|
||||
void TDF_Delta::Labels(TDF_LabelList& aLabelList) const
|
||||
{
|
||||
Standard_Boolean inList;
|
||||
TDF_LabelMap labMap;
|
||||
// If <aLabelList> is not empty...
|
||||
#ifdef DEB_DELTA
|
||||
Standard_Boolean inList;
|
||||
if (aLabelList.Extent() > 0) cout<<"Previously added as modified label(s) ";
|
||||
#endif
|
||||
for (TDF_ListIteratorOfLabelList it1(aLabelList);
|
||||
it1.More(); it1.Next()) {
|
||||
#ifdef DEB_DELTA
|
||||
const TDF_Label& lab1 = it1.Value();
|
||||
inList = labMap.Add(lab1);
|
||||
#ifdef DEB_DELTA
|
||||
if (!inList) {
|
||||
lab1.EntryDump(cout);cout<<" | ";
|
||||
}
|
||||
@@ -181,9 +181,9 @@ void TDF_Delta::Labels(TDF_LabelList& aLabelList) const
|
||||
for (TDF_ListIteratorOfAttributeDeltaList it2(myAttDeltaList);
|
||||
it2.More();
|
||||
it2.Next()) {
|
||||
#ifdef DEB_DELTA
|
||||
const TDF_Label& lab1 = it2.Value()->Label();
|
||||
inList = labMap.Add(lab1);
|
||||
#ifdef DEB_DELTA
|
||||
if (!inList) {
|
||||
lab1.EntryDump(cout);cout<<" | ";
|
||||
}
|
||||
|
Reference in New Issue
Block a user