1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024162: Eliminate CLang compiler warning

Got rid from most cases of appearance '-Wunused-private-field' warning
This commit is contained in:
omy
2013-09-11 15:49:07 +04:00
committed by abv
parent eafb234bf1
commit 258ff83bb6
77 changed files with 151 additions and 334 deletions

View File

@@ -58,7 +58,6 @@ is
Set (myclass; label: Label from TDF; string : ExtendedString from TCollection)
---Purpose: Creates (if does not exist) and sets the name in the name attribute.
-- myEmpty becomes False
returns Name from TDataStd;
@@ -158,11 +157,6 @@ is
-- Returns the name contained in this name attribute.
---C++: return const &
--SetEmpty(me: mutable);
---Purpose: Set myEmpty field
--IsEmpty(me) returns Boolean from Standard;
---Category: TDF_Attribute methods
-- =====================
@@ -186,6 +180,5 @@ is
fields
myString : ExtendedString from TCollection; --To store name
myEmpty : Boolean from Standard; --Is set to True if name isn't set
end Name;

View File

@@ -123,26 +123,7 @@ Handle(TDataStd_Name) TDataStd_Name::Set
//purpose : Empty Constructor
//=======================================================================
TDataStd_Name::TDataStd_Name ()
: myEmpty(Standard_True) { }
//=======================================================================
//function : Father
//purpose :
//=======================================================================
// Standard_Boolean TDataStd_Name::Father (Handle(TDataStd_Name)& name) const
// {
// Handle(TDataStd_Name) father;
// TDF_Label L = Label();
// while (!L.IsRoot()) {
// L = L.Father();
// if (L.FindAttribute (TDataStd_Name::GetID(), father)) {
// name = father;
// return Standard_True;
// }
// }
// return Standard_False;
// }
TDataStd_Name::TDataStd_Name () { }
//=======================================================================
//function : Set
@@ -150,15 +131,10 @@ TDataStd_Name::TDataStd_Name ()
//=======================================================================
void TDataStd_Name::Set (const TCollection_ExtendedString& S)
{
// OCC2932 correction
if(myString == S) return;
Backup();
myString = S;
//TCollection_ExtendedString tmpS(S);
//tmpS.RemoveAll(':');
//myString = tmpS;
//myEmpty = Standard_False;
}
@@ -172,24 +148,6 @@ const TCollection_ExtendedString& TDataStd_Name::Get () const
return myString;
}
//=======================================================================
//function : SetEmpty
//purpose :
//=======================================================================
// void TDataStd_Name::SetEmpty()
// {
// Backup();
// myEmpty = Standard_True;
// myString.Clear();
// }
//=======================================================================
//function : IsEmpty
//purpose :
//=======================================================================
//Standard_Boolean TDataStd_Name::IsEmpty() const {return myEmpty;}
// TDF_Attribute methods
//=======================================================================
@@ -200,8 +158,6 @@ const TCollection_ExtendedString& TDataStd_Name::Get () const
const Standard_GUID& TDataStd_Name::ID () const { return GetID(); }
//=======================================================================
//function : NewEmpty
//purpose :