mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0032056: Coding Rules - remove package MMgt and other types deprecated since OCCT 7.2.0
Removed functionality deprecated since OCCT 7.1.0: - 0027834 built-in iterator in class SelectMgr_ViewerSelector; - 0027900 obsolete constructor of V3d_Viewer class; - 0027816 obsolete clipping plane setters V3d_View/PrsMgr_PresentableObject:SetClipPlanes(); - 0027860 obsolete transformation persistence methods from class PrsMgr_PresentableObject; - 0027756 obsolete methods Prs3d_Text::Draw(); - 0024393 obsolete enum Graphic3d_ZLayerSetting; - 0025180 obsolete method Graphic3d_Structure::Transform(). Removed functionality deprecated since OCCT 7.2.0: - 0028832 obsolete class MMgt_TShared; - 0026937 obsolete property Standard_Failure::Caught(); - 0028799 obsolete types defined within Quantity package; - 0028441 obsolete nested enum Image_PixMap::ImgFormat; - 0025695 obsolete method PrsMgr_PresentationManager::Unhighlight(); - 0028205 obsolete class MeshVS_ColorHasher; - 0027958 obsolete methods from Prs3d_DatumAspect class; - 0025695 obsolete class Graphic3d_HighlightStyle; - 0027954 obsolete BRepOffsetAPI_MakeOffsetShape,BRepOffsetAPI_MakeThickSolid constructors.
This commit is contained in:
@@ -27,9 +27,6 @@ IMPLEMENT_STANDARD_RTTIEXT(Standard_Failure,Standard_Transient)
|
||||
|
||||
namespace
|
||||
{
|
||||
//! Global last failure object returned by Standard_Failure::Caught().
|
||||
static Standard_THREADLOCAL Handle(Standard_Failure) Standard_Failure_RaisedError;
|
||||
|
||||
//! Global parameter defining default length of stack trace.
|
||||
static Standard_Integer Standard_Failure_DefaultStackTraceLength = 0;
|
||||
}
|
||||
@@ -221,15 +218,6 @@ void Standard_Failure::SetStackString (const Standard_CString theStack)
|
||||
myStackTrace = StringRef::allocate_message (theStack);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : Caught
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
Handle(Standard_Failure) Standard_Failure::Caught()
|
||||
{
|
||||
return Standard_Failure_RaisedError;
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : Raise
|
||||
// purpose :
|
||||
@@ -276,7 +264,6 @@ void Standard_Failure::Reraise (const Standard_SStream& theReason)
|
||||
// =======================================================================
|
||||
void Standard_Failure::Reraise()
|
||||
{
|
||||
Standard_Failure_RaisedError = this;
|
||||
Throw();
|
||||
}
|
||||
|
||||
@@ -290,7 +277,6 @@ void Standard_Failure::Jump()
|
||||
Standard_ErrorHandler::Error (this);
|
||||
Standard_ErrorHandler::Abort (this);
|
||||
#else
|
||||
Standard_Failure_RaisedError = this;
|
||||
Throw();
|
||||
#endif
|
||||
}
|
||||
|
@@ -113,12 +113,6 @@ public:
|
||||
//! the current active signal handler, and only then is
|
||||
//! converted to C++ exception.
|
||||
Standard_EXPORT void Jump();
|
||||
|
||||
//! Returns the last caught exception.
|
||||
//! Needed when exceptions are emulated by C longjumps,
|
||||
//! in other cases is also provided for compatibility.
|
||||
Standard_DEPRECATED("This method is deprecated (not thread-safe), use standard C++ mechanism instead")
|
||||
Standard_EXPORT static Handle(Standard_Failure) Caught();
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(Standard_Failure,Standard_Transient)
|
||||
|
||||
|
Reference in New Issue
Block a user