1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +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:
abv
2014-04-11 13:59:41 +04:00
committed by apn
parent c5751993f2
commit 2cb4424136
143 changed files with 16 additions and 2825 deletions

View File

@@ -1,20 +0,0 @@
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <Aspect_CLayer2d.hxx>
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_CLayer2d)
{
static Handle(Standard_Type) _atype = new Standard_Type ("Aspect_CLayer2d", sizeof (Aspect_CLayer2d));
return _atype;
}

View File

@@ -24,12 +24,4 @@
#include <InterfaceGraphic_Aspect.hxx>
typedef CALL_DEF_LAYER Aspect_CLayer2d;
#if defined(__cplusplus) || defined(c_plusplus)
/*==== Definition de Type ====================================================*/
#include <Standard_Type.hxx>
const Handle(Standard_Type)& TYPE(Aspect_CLayer2d) ;
/*============================================================================*/
#endif
#endif /*Aspect_CLayer2d_HeaderFile*/

View File

@@ -21,16 +21,6 @@
#ifndef _Aspect_Display_HeaderFile
#define _Aspect_Display_HeaderFile
typedef void* Aspect_Display; /* Display* under UNIX */
#if defined(__cplusplus) || defined(c_plusplus)
/*==== Definition de Type ====================================================*/
#include <Standard_Macro.hxx>
class Handle(Standard_Type);
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_Display);
/*============================================================================*/
#endif
typedef void* Aspect_Display; /* Display* under UNIX */
#endif /* _Aspect_Display_HeaderFile */

View File

@@ -27,14 +27,4 @@
typedef unsigned long Aspect_Drawable; /* Window or Pixmap under UNIX */
#endif /* WNT */
#if defined(__cplusplus) || defined(c_plusplus)
/*==== Definition de Type ====================================================*/
#include <Standard_Macro.hxx>
class Handle(Standard_Type);
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_Drawable);
/*============================================================================*/
#endif
#endif /* _Aspect_Drawable_HeaderFile */

View File

@@ -1,24 +0,0 @@
// Created on: 1994-08-24
// Created by: Modelistation
// Copyright (c) 1994-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <Aspect_FStream.hxx>
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_FStream)
{
static Handle(Standard_Type) _atype =
new Standard_Type("Aspect_FStream",sizeof(Aspect_FStream));
return _atype;
}

View File

@@ -19,7 +19,4 @@
typedef ofstream* Aspect_FStream;
#include <Standard_Type.hxx>
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_FStream);
#endif

View File

@@ -46,7 +46,4 @@ typedef int (*Aspect_GraphicCallbackProc) (Aspect_Drawable theWind
void* theUserData,
Aspect_GraphicCallbackStruct* theCallData);
class Handle(Standard_Type);
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_GraphicCallbackProc);
#endif /* _Aspect_GraphicCallbackProc_HeaderFile */

View File

@@ -1,21 +0,0 @@
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <Aspect_Handle.hxx>
#include <Standard_Type.hxx>
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_Handle)
{
static Handle(Standard_Type) _atype = new Standard_Type ("Aspect_Handle", sizeof (Aspect_Handle));
return _atype;
}

View File

@@ -28,14 +28,4 @@
typedef unsigned long Aspect_Handle;
#endif /* WNT */
#if defined(__cplusplus) || defined(c_plusplus)
/*==== Definition de Type ====================================================*/
#include <Standard_Macro.hxx>
class Handle(Standard_Type);
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_Handle);
/*============================================================================*/
#endif
#endif /* _Aspect_Handle_HeaderFile */

View File

@@ -1,23 +0,0 @@
// Created on: 2001-01-26
// Created by: SPK
// Copyright (c) 2001-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <Aspect_IFStream.hxx>
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_IFStream)
{
static Handle(Standard_Type) _atype =
new Standard_Type("Aspect_IFStream", sizeof(Aspect_IFStream));
return _atype;
}

View File

@@ -18,9 +18,6 @@
#include <Standard_Stream.hxx>
typedef ifstream* Aspect_IFStream;
#include <Standard_Type.hxx>
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_IFStream);
typedef std::ifstream* Aspect_IFStream;
#endif

View File

@@ -1,24 +0,0 @@
// Created on: 1998-10-28
// Created by: DCB
// Copyright (c) 1998-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <Aspect_RGBPixel.hxx>
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_RGBPixel)
{
static Handle(Standard_Type) _atype =
new Standard_Type("Aspect_RGBPixel",sizeof(Aspect_RGBPixel));
return _atype;
}

View File

@@ -14,13 +14,10 @@
#ifndef _Aspect_RGBPixel_HeaderFile
#define _Aspect_RGBPixel_HeaderFile
#include <Standard_Type.hxx>
typedef struct {
float red;
float green;
float blue;
} Aspect_RGBPixel;
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_RGBPixel);
#endif

View File

@@ -24,14 +24,4 @@
typedef void* Aspect_RenderingContext; /* GLXContext under UNIX */
/* HGLRC under WNT */
#if defined(__cplusplus) || defined(c_plusplus)
/*==== Definition de Type ====================================================*/
#include <Standard_Macro.hxx>
class Handle(Standard_Type);
const Handle(Standard_Type)& STANDARD_TYPE(Aspect_RenderingContext);
/*============================================================================*/
#endif
#endif /* _Aspect_RenderingContext_HeaderFile */

View File

@@ -2,14 +2,9 @@ EXTERNLIB
Aspect_WOKSteps.edl
Aspect_CMPLRS.edl
Aspect_FStream.hxx
Aspect_FStream.cxx
Aspect_IFStream.hxx
Aspect_IFStream.cxx
Aspect_CLayer2d.hxx
Aspect_CLayer2d.cxx
Aspect_RGBPixel.hxx
Aspect_RGBPixel.cxx
Aspect_Handle.cxx
Aspect_Handle.hxx
Aspect_XWD.hxx
Aspect_Units.hxx