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

0029576: Coding Rules - remove unused declarations from package Aspect

The following unused declarations have been removed:
  Aspect_TypeOfPrimitive, Aspect_TypeOfLayer, Aspect_TypeOfEdge,
  Aspect_TypeOfDrawMode, Aspect_TypeOfConstraint,
  Aspect_DriverDefinitionError, Aspect_BadAccess.
This commit is contained in:
kgv
2018-03-14 21:51:11 +03:00
committed by bugmaster
parent f46c2b39e6
commit 39a349fdcb
9 changed files with 3 additions and 229 deletions

View File

@@ -1,36 +0,0 @@
// Created by: NW,JPB,CAL
// Copyright (c) 1991-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.
#ifndef _Aspect_BadAccess_HeaderFile
#define _Aspect_BadAccess_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_DomainError.hxx>
class Aspect_BadAccess;
DEFINE_STANDARD_HANDLE(Aspect_BadAccess, Standard_DomainError)
#if !defined No_Exception && !defined No_Aspect_BadAccess
#define Aspect_BadAccess_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) throw Aspect_BadAccess(MESSAGE);
#else
#define Aspect_BadAccess_Raise_if(CONDITION, MESSAGE)
#endif
DEFINE_STANDARD_EXCEPTION(Aspect_BadAccess, Standard_DomainError)
#endif // _Aspect_BadAccess_HeaderFile

View File

@@ -1,36 +0,0 @@
// Created by: NW,JPB,CAL
// Copyright (c) 1991-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.
#ifndef _Aspect_DriverDefinitionError_HeaderFile
#define _Aspect_DriverDefinitionError_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_OutOfRange.hxx>
class Aspect_DriverDefinitionError;
DEFINE_STANDARD_HANDLE(Aspect_DriverDefinitionError, Standard_OutOfRange)
#if !defined No_Exception && !defined No_Aspect_DriverDefinitionError
#define Aspect_DriverDefinitionError_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) throw Aspect_DriverDefinitionError(MESSAGE);
#else
#define Aspect_DriverDefinitionError_Raise_if(CONDITION, MESSAGE)
#endif
DEFINE_STANDARD_EXCEPTION(Aspect_DriverDefinitionError, Standard_OutOfRange)
#endif // _Aspect_DriverDefinitionError_HeaderFile

View File

@@ -1,28 +0,0 @@
// Created by: NW,JPB,CAL
// Copyright (c) 1991-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.
#ifndef _Aspect_TypeOfConstraint_HeaderFile
#define _Aspect_TypeOfConstraint_HeaderFile
//! Definition of the attachment for the layers
enum Aspect_TypeOfConstraint
{
Aspect_TOC_BOTTOM_LEFT,
Aspect_TOC_BOTTOM_RIGHT,
Aspect_TOC_TOP_LEFT,
Aspect_TOC_TOP_RIGHT
};
#endif // _Aspect_TypeOfConstraint_HeaderFile

View File

@@ -1,28 +0,0 @@
// Created by: NW,JPB,CAL
// Copyright (c) 1991-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.
#ifndef _Aspect_TypeOfDrawMode_HeaderFile
#define _Aspect_TypeOfDrawMode_HeaderFile
//! Definition of the draw modes
enum Aspect_TypeOfDrawMode
{
Aspect_TODM_REPLACE,
Aspect_TODM_ERASE,
Aspect_TODM_XOR,
Aspect_TODM_XORLIGHT
};
#endif // _Aspect_TypeOfDrawMode_HeaderFile

View File

@@ -1,29 +0,0 @@
// Created by: NW,JPB,CAL
// Copyright (c) 1991-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.
#ifndef _Aspect_TypeOfEdge_HeaderFile
#define _Aspect_TypeOfEdge_HeaderFile
//! Definition of edge visibility
//!
//! TOE_VISIBLE Edge is displayed
//! TOE_INVISIBLE Edge is not displayed
enum Aspect_TypeOfEdge
{
Aspect_TOE_VISIBLE,
Aspect_TOE_INVISIBLE
};
#endif // _Aspect_TypeOfEdge_HeaderFile

View File

@@ -1,31 +0,0 @@
// Created by: NW,JPB,CAL
// Copyright (c) 1991-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.
#ifndef _Aspect_TypeOfLayer_HeaderFile
#define _Aspect_TypeOfLayer_HeaderFile
//! Modes of drawing for the objects in a layer
//!
//! TOL_OVERLAY, the graphic of the layer is draw
//! after the 3d graphic.
//! TOL_UNDERLAY, the graphic of the layer is draw
//! before the 3d graphic.
enum Aspect_TypeOfLayer
{
Aspect_TOL_OVERLAY,
Aspect_TOL_UNDERLAY
};
#endif // _Aspect_TypeOfLayer_HeaderFile

View File

@@ -1,32 +0,0 @@
// Created by: NW,JPB,CAL
// Copyright (c) 1991-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.
#ifndef _Aspect_TypeOfPrimitive_HeaderFile
#define _Aspect_TypeOfPrimitive_HeaderFile
enum Aspect_TypeOfPrimitive
{
Aspect_TOP_UNKNOWN,
Aspect_TOP_POLYLINE,
Aspect_TOP_POLYGON,
Aspect_TOP_SEGMENTS,
Aspect_TOP_ARCS,
Aspect_TOP_POLYARCS,
Aspect_TOP_POINTS,
Aspect_TOP_MARKERS
};
#endif // _Aspect_TypeOfPrimitive_HeaderFile

View File

@@ -3,7 +3,6 @@ Aspect_AspectLineDefinitionError.hxx
Aspect_AspectMarkerDefinitionError.hxx
Aspect_Background.cxx
Aspect_Background.hxx
Aspect_BadAccess.hxx
Aspect_CircularGrid.cxx
Aspect_CircularGrid.hxx
Aspect_Convert.hxx
@@ -12,7 +11,6 @@ Aspect_DisplayConnection.cxx
Aspect_DisplayConnection.hxx
Aspect_DisplayConnectionDefinitionError.hxx
Aspect_Drawable.hxx
Aspect_DriverDefinitionError.hxx
Aspect_FBConfig.hxx
Aspect_FillMethod.hxx
Aspect_GenId.cxx
@@ -39,17 +37,12 @@ Aspect_SequenceOfColor.hxx
Aspect_TypeOfColorScaleData.hxx
Aspect_TypeOfColorScaleOrientation.hxx
Aspect_TypeOfColorScalePosition.hxx
Aspect_TypeOfConstraint.hxx
Aspect_TypeOfDeflection.hxx
Aspect_TypeOfDisplayText.hxx
Aspect_TypeOfDrawMode.hxx
Aspect_TypeOfEdge.hxx
Aspect_TypeOfFacingModel.hxx
Aspect_TypeOfHighlightMethod.hxx
Aspect_TypeOfLayer.hxx
Aspect_TypeOfLine.hxx
Aspect_TypeOfMarker.hxx
Aspect_TypeOfPrimitive.hxx
Aspect_TypeOfResize.hxx
Aspect_TypeOfStyleText.hxx
Aspect_TypeOfTriedronPosition.hxx