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

@@ -19,7 +19,6 @@ set(OCCT_TopoDS_FILES
TopoDS_Iterator.cxx
TopoDS_Iterator.hxx
TopoDS_ListOfShape.hxx
TopoDS_LockedShape.hxx
TopoDS_Shape.cxx
TopoDS_Shape.hxx

View File

@@ -17,11 +17,12 @@
#include <Standard_NullObject.hxx>
#include <TopoDS_Builder.hxx>
#include <TopoDS_FrozenShape.hxx>
#include <TopoDS_ListOfShape.hxx>
#include <NCollection_List.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_TShape.hxx>
#include <TopoDS_TWire.hxx>
#include <TopoDS_UnCompatibleShapes.hxx>
class TopoDS_Shape;
//=======================================================================
// function : MakeShape

View File

@@ -19,9 +19,10 @@
#include <Standard_NoSuchObject.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_ListOfShape.hxx>
#include <NCollection_List.hxx>
#include <TopAbs_Orientation.hxx>
#include <TopLoc_Location.hxx>
class TopoDS_Shape;
//! Iterates on the underlying shape underlying a given
//! TopoDS_Shape object, providing access to its

View File

@@ -1,25 +0,0 @@
// Created on: 1990-12-11
// Created by: Remi Lequette
// Copyright (c) 1990-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 TopoDS_ListOfShape_HeaderFile
#define TopoDS_ListOfShape_HeaderFile
#include <NCollection_List.hxx>
class TopoDS_Shape;
typedef NCollection_List<TopoDS_Shape> TopoDS_ListOfShape;
#endif

View File

@@ -19,7 +19,8 @@
#include <TopAbs.hxx>
#include <TopAbs_ShapeEnum.hxx>
#include <TopoDS_ListOfShape.hxx>
#include <NCollection_List.hxx>
class TopoDS_Shape;
// resolve name collisions with X11 headers
#ifdef Convex