mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -20,7 +20,7 @@
|
||||
|
||||
#include <Standard.hxx>
|
||||
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#include <cstdlib>
|
||||
|
||||
//! This template class represent constant UTF-* string.
|
||||
@@ -240,7 +240,7 @@ private: //! @name low-level methods
|
||||
const Standard_Byte* theStrSrc,
|
||||
const Standard_Integer theSizeBytes)
|
||||
{
|
||||
::memcpy (theStrDst, theStrSrc, (Standard_Size )theSizeBytes);
|
||||
std::memcpy (theStrDst, theStrSrc, (Standard_Size )theSizeBytes);
|
||||
}
|
||||
|
||||
//! Compare two Unicode strings per-byte.
|
||||
@@ -250,7 +250,7 @@ private: //! @name low-level methods
|
||||
const Standard_Integer theSizeBytes2)
|
||||
{
|
||||
return (theSizeBytes1 == theSizeBytes2)
|
||||
&& (::memcmp (theString1, theString2, (Standard_Size )theSizeBytes1) == 0);
|
||||
&& (std::memcmp (theString1, theString2, (Standard_Size )theSizeBytes1) == 0);
|
||||
}
|
||||
|
||||
private: //! @name private fields
|
||||
|
Reference in New Issue
Block a user