Coding - Remove unused typedefs and includes, replace with forward declarations (#971)

- Deleted TopoDS_ListOfShape.hxx and removed its references in various files.
- Replaced instances of TopoDS_ListOfShape with NCollection_List in TopoDS_Builder, TopoDS_Iterator, and TopoDS_TShape.
- Updated CMake files to exclude TopoDS_ListOfShape from the build.
- Removed Geom2dConvert_SequenceOfPPoint and its usages, replacing them with NCollection_Sequence.
- Cleaned up Select3D and SelectMgr modules by removing Select3D_EntitySequence, Select3D_IndexedMapOfEntity, and SelectMgr_IndexedMapOfOwner.
- Adjusted includes in various files to use NCollection types instead of removed classes.
- Overall, this commit streamlines the codebase by eliminating unused types and reducing dependencies.
This commit is contained in:
Pasukhin Dmitry
2025-12-29 22:31:23 +00:00
committed by GitHub
parent f675adaac0
commit bd99539eb2
158 changed files with 1902 additions and 1526 deletions

View File

@@ -20,7 +20,6 @@
#include <Standard.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -20,7 +20,6 @@
#include <Standard.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -20,7 +20,6 @@
#include <Standard.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -20,7 +20,6 @@
#include <Standard.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -20,7 +20,6 @@
#include <Standard.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -20,7 +20,6 @@
#include <Standard.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -20,7 +20,6 @@
#include <Standard.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -1,25 +0,0 @@
// Created on: 1991-01-14
// Created by: Arnaud BOUZY
// 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 Expr_Array1OfNamedUnknown_HeaderFile
#define Expr_Array1OfNamedUnknown_HeaderFile
#include <NCollection_Array1.hxx>
class Expr_NamedUnknown;
typedef NCollection_Array1<occ::handle<Expr_NamedUnknown>> Expr_Array1OfNamedUnknown;
#endif

View File

@@ -22,7 +22,6 @@
#include <Expr.hxx>
#include <Expr_GeneralExpression.hxx>
#include <NCollection_Array1.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <Expr_BinaryFunction.hxx>
#include <Expr_GeneralFunction.hxx>
#include <Expr_InvalidFunction.hxx>
@@ -31,6 +30,7 @@
#include <Expr_Sum.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
class Expr_NamedUnknown;
IMPLEMENT_STANDARD_RTTIEXT(Expr_BinaryFunction, Expr_BinaryExpression)

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_BinaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralFunction;
class Expr_GeneralExpression;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -21,7 +21,6 @@
#include <Expr_BinaryExpression.hxx>
#include <Standard_Integer.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_BinaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -20,7 +20,6 @@
#include <Standard.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_BinaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -23,7 +23,6 @@
#include <Standard_Integer.hxx>
#include <Expr_GeneralFunction.hxx>
#include <Standard_Real.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -23,7 +23,6 @@
#include <Standard_Transient.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_NamedUnknown;
class TCollection_AsciiString;

View File

@@ -23,7 +23,6 @@
#include <Standard_Transient.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_NamedUnknown;
class TCollection_AsciiString;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -22,7 +22,6 @@
#include <Expr_NamedExpression.hxx>
#include <Standard_Integer.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class TCollection_AsciiString;
class Expr_GeneralExpression;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <Expr_GeneralFunction.hxx>
#include <Standard_Integer.hxx>
#include <NCollection_Array1.hxx>

View File

@@ -22,7 +22,6 @@
#include <Expr_NamedExpression.hxx>
#include <Standard_Integer.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class TCollection_AsciiString;
@@ -101,5 +100,6 @@ private:
};
#include <Expr_NamedUnknown.lxx>
class Expr_NamedUnknown;
#endif // _Expr_NamedUnknown_HeaderFile

View File

@@ -22,7 +22,6 @@
#include <Expr_GeneralExpression.hxx>
#include <Standard_Integer.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_NamedUnknown;
class TCollection_AsciiString;

View File

@@ -20,7 +20,7 @@
#endif
#include <Expr.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
#include <Expr_FunctionDerivative.hxx>
#include <Expr_GeneralFunction.hxx>
#include <Expr_NamedUnknown.hxx>
@@ -31,6 +31,7 @@
#include <Expr_Sum.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
class Expr_NamedUnknown;
IMPLEMENT_STANDARD_RTTIEXT(Expr_PolyFunction, Expr_PolyExpression)

View File

@@ -23,7 +23,6 @@
#include <Expr_PolyExpression.hxx>
#include <Expr_GeneralExpression.hxx>
#include <NCollection_Array1.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
class Expr_GeneralFunction;
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -23,7 +23,6 @@
#include <Expr_PolyExpression.hxx>
#include <Expr_GeneralExpression.hxx>
#include <NCollection_Sequence.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -24,7 +24,6 @@
#include <Expr_GeneralExpression.hxx>
#include <NCollection_Sequence.hxx>
#include <Standard_Integer.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -22,7 +22,6 @@
#include <Expr.hxx>
#include <Expr_GeneralExpression.hxx>
#include <NCollection_Array1.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <Expr_FunctionDerivative.hxx>
#include <Expr_GeneralFunction.hxx>
#include <Expr_InvalidFunction.hxx>
@@ -32,6 +31,7 @@
#include <Expr_UnaryFunction.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
class Expr_NamedUnknown;
IMPLEMENT_STANDARD_RTTIEXT(Expr_UnaryFunction, Expr_UnaryExpression)

View File

@@ -21,7 +21,6 @@
#include <Standard_Type.hxx>
#include <Expr_UnaryExpression.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralFunction;
class Expr_GeneralExpression;

View File

@@ -22,7 +22,6 @@
#include <Expr_UnaryExpression.hxx>
#include <Standard_Integer.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_GeneralExpression;
class Expr_NamedUnknown;

View File

@@ -19,7 +19,6 @@ set(OCCT_Expr_FILES
Expr_ArgTanh.cxx
Expr_ArgTanh.hxx
Expr_Array1OfNamedUnknown.hxx
Expr_BinaryExpression.cxx
Expr_BinaryExpression.hxx

View File

@@ -48,8 +48,8 @@
#include <NCollection_Sequence.hxx>
#include <Expr_Operators.hxx>
#include <ExprIntrp_SyntaxError.hxx>
#include <Expr_Array1OfNamedUnknown.hxx>
#include <NCollection_Array1.hxx>
class Expr_NamedUnknown;
static TCollection_AsciiString ExprIntrp_assname;
static TCollection_AsciiString ExprIntrp_funcdefname;