mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0024805: Eliminate unused static functions and methods: ShallowDump(), ShallowCopy(), STANDARD_TYPE(...)
Implementation of global functions STANDARD_TYPE() for types not inheriting Standard_Transient or Standard_Persistent are eliminated. Global functions and class methods ShallowCopy() are removed; also removed unused classes Visual3d_PickPath and Visual3d_PickDescriptor. Global functions and class methods ShallowDump() are removed, except for classes Standard_GUID, TopLoc_Datum, and TopLoc_Location as the latter are still used in some Debug printouts.
This commit is contained in:
@@ -571,14 +571,6 @@ is
|
||||
---Level: Advanced
|
||||
---Purpose: Returns the field myString.
|
||||
|
||||
ShallowCopy(me) returns mutable like me;
|
||||
---Level: Advanced
|
||||
---C++: function call
|
||||
|
||||
ShallowDump(me ; s: in out OStream);
|
||||
---Level: Avanced
|
||||
---C++: function call
|
||||
|
||||
IsSameState (me ; other : like me)
|
||||
---Level: Advanced
|
||||
returns Boolean;
|
||||
|
@@ -568,27 +568,6 @@ Standard_Character TCollection_HAsciiString::Value(const Standard_Integer where)
|
||||
return myString.Value(where);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// ShallowCopy
|
||||
// ----------------------------------------------------------------------------
|
||||
Handle(TCollection_HAsciiString) TCollection_HAsciiString::ShallowCopy() const
|
||||
{
|
||||
// Handle(TCollection_HAsciiString) thecopy = new TCollection_HAsciiString;
|
||||
// for (Standard_Integer i = 1 ; i <= Length() ; i++)
|
||||
// thecopy->Insert(i,Value(i));
|
||||
// return thecopy;
|
||||
return new TCollection_HAsciiString(*this);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// ShallowDump
|
||||
//---------------------------------------------------------------------
|
||||
void TCollection_HAsciiString::ShallowDump(Standard_OStream& S) const
|
||||
{
|
||||
S << "begin class HAsciiString "<<endl;
|
||||
myString.Print(S);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// IsSameState
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -216,12 +216,6 @@ is
|
||||
Print (me ; astream : out OStream);
|
||||
---Purpose: Displays <me> .
|
||||
|
||||
ShallowCopy(me) returns mutable like me;
|
||||
---C++: function call
|
||||
|
||||
ShallowDump(me ; s: in out OStream);
|
||||
---Level: Advanced
|
||||
|
||||
IsSameState (me ; other : like me) returns Boolean;
|
||||
---Level: Advanced
|
||||
|
||||
|
@@ -290,27 +290,6 @@ void TCollection_HExtendedString::Print(Standard_OStream& S) const
|
||||
myString.Print(S);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// ShallowCopy
|
||||
// ----------------------------------------------------------------------------
|
||||
Handle(TCollection_HExtendedString) TCollection_HExtendedString::ShallowCopy() const
|
||||
{
|
||||
Handle(TCollection_HExtendedString) thecopy =
|
||||
new TCollection_HExtendedString;
|
||||
for (Standard_Integer i = 1 ; i <= Length() ; i++)
|
||||
thecopy->Insert(i,Value(i));
|
||||
return thecopy;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// ShallowDump
|
||||
//---------------------------------------------------------------------
|
||||
void TCollection_HExtendedString::ShallowDump(Standard_OStream& S) const
|
||||
{
|
||||
S << "begin class HExtendedString "<<endl;
|
||||
myString.Print(S);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Issamestate
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -170,18 +170,6 @@ void TCollection_HSequence::Remove(const Standard_Integer From,
|
||||
mySequence.Remove(From,To);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// ShallowCopy
|
||||
// ---------------------------------------------------------------------
|
||||
Handle(TCollection_HSequence) TCollection_HSequence::ShallowCopy() const
|
||||
{
|
||||
Handle (TCollection_HSequence) TheCopy = new TCollection_HSequence();
|
||||
|
||||
Standard_Integer i;
|
||||
for (i=1; i <= mySequence.Length(); i++) TheCopy->Append(mySequence(i));
|
||||
return TheCopy;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// IsSamestate
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -134,15 +134,6 @@ is
|
||||
-- The two sets cannot be identical.
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
ShallowCopy(me) returns mutable like me;
|
||||
---Level: Advanced
|
||||
---C++: function call
|
||||
|
||||
-- IsSameState (me; other: like me) returns Boolean;
|
||||
-- Level: Advanced
|
||||
|
||||
|
||||
|
||||
Set(me) returns TheSet
|
||||
---Level: Advanced
|
||||
|
@@ -65,18 +65,6 @@ Handle(TCollection_HSet) TCollection_HSet::Difference
|
||||
return R;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ShallowCopy
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HSet) TCollection_HSet::ShallowCopy() const
|
||||
{
|
||||
Handle(TCollection_HSet) S = new TCollection_HSet();
|
||||
S->ChangeSet() = mySet;
|
||||
return S;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : IsSameState
|
||||
//purpose :
|
||||
|
Reference in New Issue
Block a user