]> OCCT Git - occt.git/commitdiff
Coding - Remove duplicate and self-referencing include directives (#739)
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Wed, 8 Oct 2025 17:04:28 +0000 (18:04 +0100)
committerdpasukhi <dpasukhi@opencascade.com>
Wed, 8 Oct 2025 19:31:35 +0000 (20:31 +0100)
- Removal of self-referencing includes where files include themselves
- Elimination of duplicate include statements within the same file
- Cleanup of redundant includes in conditional compilation blocks
- Adding CI validation for validation PRs

81 files changed:
.github/actions/clang-format-check/action.yml
.github/actions/scripts/cleanup-includes.py [new file with mode: 0644]
src/ApplicationFramework/TKCAF/TNaming/TNaming_Name.cxx
src/ApplicationFramework/TKCAF/TNaming/TNaming_Naming.cxx
src/ApplicationFramework/TKLCAF/TDF/TDF_AttributeDoubleMap.hxx
src/DataExchange/TKDEIGES/IGESData/IGESData_FileRecognizer_0.cxx
src/DataExchange/TKDEIGES/IGESData/IGESData_GlobalNodeOfSpecificLib_0.cxx
src/DataExchange/TKDEIGES/IGESData/IGESData_GlobalNodeOfWriterLib_0.cxx
src/DataExchange/TKDEIGES/IGESData/IGESData_NodeOfSpecificLib_0.cxx
src/DataExchange/TKDEIGES/IGESData/IGESData_NodeOfWriterLib_0.cxx
src/DataExchange/TKDESTEP/RWStepAP214/RWStepAP214_ReadWriteModule.cxx
src/DataExchange/TKDESTEP/RWStepVisual/RWStepVisual_RWPresentationLayerUsage.cxx
src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_Reader.cxx
src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_Styles.cxx
src/DataExchange/TKDESTEP/STEPControl/STEPControl_Controller.cxx
src/DataExchange/TKDESTEP/StepData/StepData_FileRecognizer_0.cxx
src/DataExchange/TKDESTEP/StepData/StepData_GlobalNodeOfWriterLib_0.cxx
src/DataExchange/TKDESTEP/StepData/StepData_NodeOfWriterLib_0.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_RunoutZoneOrientation.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_ToleranceZoneForm.hxx
src/DataExchange/TKDESTEP/StepShape/StepShape_ValueFormatTypeQualifier.hxx
src/DataExchange/TKDESTEP/StepVisual/StepVisual_TessellatedCurveSet.hxx
src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_DimTolTool.cxx
src/DataExchange/TKXSBase/IFSelect/IFSelect_SelectAnyType.hxx
src/DataExchange/TKXSBase/IFSelect/IFSelect_SelectType.hxx
src/DataExchange/TKXSBase/Interface/Interface_GlobalNodeOfGeneralLib_0.cxx
src/DataExchange/TKXSBase/Interface/Interface_GlobalNodeOfReaderLib_0.cxx
src/DataExchange/TKXSBase/Interface/Interface_NodeOfGeneralLib_0.cxx
src/DataExchange/TKXSBase/Interface/Interface_NodeOfReaderLib_0.cxx
src/DataExchange/TKXSBase/Transfer/Transfer_ActorOfProcessForFinder_0.cxx
src/DataExchange/TKXSBase/Transfer/Transfer_ActorOfProcessForTransient_0.cxx
src/DataExchange/TKXSBase/Transfer/Transfer_ProcessForFinder_0.cxx
src/DataExchange/TKXSBase/Transfer/Transfer_ProcessForTransient_0.cxx
src/Draw/TKDCAF/DDataStd/DDataStd_BasicCommands.cxx
src/Draw/TKQADraw/QABugs/QABugs_10.cxx
src/Draw/TKQADraw/QABugs/QABugs_11.cxx
src/Draw/TKQADraw/QABugs/QABugs_17.cxx
src/Draw/TKQADraw/QABugs/QABugs_19.cxx
src/Draw/TKQADraw/QABugs/QABugs_20.cxx
src/Draw/TKQADraw/QADraw/QADraw.cxx
src/Draw/TKTopTest/BRepTest/BRepTest_CheckCommands.cxx
src/Draw/TKViewerTest/ViewerTest/ViewerTest_ObjectCommands.cxx
src/FoundationClasses/TKMath/Poly/Poly_CoherentTriangulation.hxx
src/FoundationClasses/TKMath/gp/gp_Pln.hxx
src/FoundationClasses/TKMath/gp/gp_Pnt.hxx
src/FoundationClasses/TKernel/NCollection/NCollection_DynamicArray.hxx
src/FoundationClasses/TKernel/OSD/OSD_FileIterator.cxx
src/FoundationClasses/TKernel/OSD/OSD_FileNode.cxx
src/FoundationClasses/TKernel/OSD/OSD_Path.cxx
src/ModelingAlgorithms/TKBO/GTests/BOPTest_Utilities.pxx
src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_ProcessGR.cxx
src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_GridEE.cxx
src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_PaveSet.cxx
src/ModelingAlgorithms/TKBool/TopOpeBRepDS/TopOpeBRepDS_BuildTool.cxx
src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_CurveTool.cxx
src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_DRAW.cxx
src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_DRAW.hxx
src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_FilBuilder_C2.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_EvolvedSection.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_LocationGuide.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_NSections.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Pipe.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_UniformSection.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomPlate/GeomPlate_BuildPlateSurface.cxx
src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_Inter.gxx
src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Intersection.cxx
src/ModelingAlgorithms/TKGeomAlgo/IntStart/IntStart_SearchOnBoundaries.gxx
src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Data.cxx
src/ModelingAlgorithms/TKHelix/HelixGeom/HelixGeom_BuilderHelixCoil.cxx
src/ModelingAlgorithms/TKOffset/Draft/Draft_Modification_1.cxx
src/ModelingAlgorithms/TKTopAlgo/BRepCheck/BRepCheck_Edge.cxx
src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TListNodeOfListOfBisector_0.cxx
src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TListNodeOfListOfEdge_0.cxx
src/ModelingAlgorithms/TKTopAlgo/MAT2d/MAT2d_Circuit.cxx
src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_SurfaceOfLinearExtrusion.cxx
src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_SurfaceOfRevolution.cxx
src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_LeastSquare.gxx
src/ModelingData/TKGeomBase/BndLib/BndLib_AddSurface.cxx
src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_SurfToAnaSurf.cxx
src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectOnPlane.hxx
src/Visualization/TKV3d/SelectMgr/SelectMgr_ViewerSelector.hxx

index ae6e94e3729fcfd4fbd5d66aed3e5202c82b5773..bc90f88ba04668e85d7060cf01c5ae0abafb2ad8 100644 (file)
@@ -56,6 +56,24 @@ runs:
           clang-format -i -style=file $_
         }
 
+    - name: Clean up duplicate includes
+      if: steps.changed-files.outputs.has_files == 'true'
+      shell: pwsh
+      run: |
+        $files = Get-Content "changed_files.txt" | Where-Object { Test-Path $_ }
+        $files | ForEach-Object {
+          python3 .github/actions/scripts/cleanup-includes.py --files "$_"
+        }
+
+    - name: Re-run clang-format after include cleanup
+      if: steps.changed-files.outputs.has_files == 'true'
+      shell: pwsh
+      run: |
+        $files = Get-Content "changed_files.txt" | Where-Object { Test-Path $_ }
+        $files | ForEach-Object -ThrottleLimit 8 -Parallel {
+          clang-format -i -style=file $_
+        }
+
     - name: Remove empty lines after Standard_DEPRECATED
       if: steps.changed-files.outputs.has_files == 'true'
       shell: pwsh
diff --git a/.github/actions/scripts/cleanup-includes.py b/.github/actions/scripts/cleanup-includes.py
new file mode 100644 (file)
index 0000000..accf2a8
--- /dev/null
@@ -0,0 +1,234 @@
+#!/usr/bin/env python3
+"""
+Script to clean up duplicate #include directives and self-includes in C++ source files.
+Removes:
+1. Duplicate #include statements (keeps only the first occurrence)
+2. Self-includes (e.g., Foo.hxx including "Foo.hxx")
+
+Processes: .cxx, .hxx, .pxx, .lxx, .gxx files
+"""
+
+import os
+import re
+from pathlib import Path
+from typing import List, Tuple
+
+
+def get_filename_without_extension(filepath: str) -> str:
+    """Get the filename without extension."""
+    return Path(filepath).stem
+
+
+def process_file(filepath: str, dry_run: bool = False) -> Tuple[bool, int, bool]:
+    """
+    Process a single file to remove duplicate includes and self-includes.
+
+    Returns:
+        Tuple of (modified, num_duplicates_removed, had_self_include)
+    """
+    try:
+        with open(filepath, 'r', encoding='utf-8', errors='ignore') as f:
+            lines = f.readlines()
+    except Exception as e:
+        print(f"Error reading {filepath}: {e}")
+        return False, 0, False
+
+    # Pattern to match #include directives and preprocessor directives
+    include_pattern = re.compile(r'^\s*#\s*include\s+[<"]([^>"]+)[>"]')
+    preprocessor_pattern = re.compile(r'^\s*#\s*(if|ifdef|ifndef|elif|else|endif)')
+
+    ifdef_stack = [set()]  # Stack of tuples: (parent_scope_includes, current_branch_includes)
+    new_lines = []
+    duplicates_removed = 0
+    had_self_include = False
+    in_block_comment = False
+
+    base_filename = get_filename_without_extension(filepath)
+    file_extension = Path(filepath).suffix
+
+    for line in lines:
+        # Track multi-line comments
+        if '/*' in line:
+            in_block_comment = True
+        if '*/' in line:
+            in_block_comment = False
+            new_lines.append(line)
+            continue
+
+        # Skip lines in block comments or single-line comments
+        stripped = line.lstrip()
+        if in_block_comment or stripped.startswith('//'):
+            new_lines.append(line)
+            continue
+
+        # Track preprocessor scope changes
+        prep_match = preprocessor_pattern.match(line)
+        if prep_match:
+            directive = prep_match.group(1)
+            if directive in ('if', 'ifdef', 'ifndef'):
+                # Start new scope, inheriting parent scope's includes
+                parent_includes = ifdef_stack[-1].copy() if ifdef_stack else set()
+                ifdef_stack.append(parent_includes)
+            elif directive == 'endif':
+                # End scope
+                if len(ifdef_stack) > 1:
+                    ifdef_stack.pop()
+            elif directive in ('elif', 'else'):
+                # Alternative branches - reset to empty scope (don't inherit sibling branch)
+                # Only keep includes from before the entire #if block started
+                if len(ifdef_stack) > 1:
+                    # Get the scope from before this #if block (grandparent)
+                    grandparent_includes = ifdef_stack[-2].copy() if len(ifdef_stack) > 1 else set()
+                    ifdef_stack[-1] = grandparent_includes
+                else:
+                    ifdef_stack[-1] = set()
+            new_lines.append(line)
+            continue
+
+        match = include_pattern.match(line)
+
+        if match:
+            included_file = match.group(1)
+
+            # Skip malformed includes (e.g., empty or just extension)
+            if not included_file or included_file.startswith('.') or len(included_file) <= 4:
+                new_lines.append(line)
+                continue
+
+            included_basename = Path(included_file).stem
+            included_extension = Path(included_file).suffix
+
+            # Skip .gxx includes from duplicate checking
+            if included_extension == '.gxx':
+                new_lines.append(line)
+                continue
+
+            # Check for self-include (same name AND same extension)
+            if included_basename == base_filename and included_extension == file_extension:
+                had_self_include = True
+                print(f"  Removing self-include: {line.strip()}")
+                continue
+
+            # Check for duplicate only in current scope
+            current_scope = ifdef_stack[-1]
+            if included_file in current_scope:
+                duplicates_removed += 1
+                print(f"  Removing duplicate: {line.strip()}")
+                continue
+
+            current_scope.add(included_file)
+
+        new_lines.append(line)
+
+    # Check if file was modified
+    modified = (len(new_lines) != len(lines))
+
+    if modified and not dry_run:
+        try:
+            with open(filepath, 'w', encoding='utf-8') as f:
+                f.writelines(new_lines)
+        except Exception as e:
+            print(f"Error writing {filepath}: {e}")
+            return False, 0, False
+
+    return modified, duplicates_removed, had_self_include
+
+
+def find_files(root_dir: str, extensions: List[str]) -> List[str]:
+    """Find all files with specified extensions in the directory tree."""
+    files = []
+    for ext in extensions:
+        files.extend(Path(root_dir).rglob(f"*{ext}"))
+    return [str(f) for f in files]
+
+
+def main():
+    import argparse
+
+    parser = argparse.ArgumentParser(
+        description='Clean up duplicate #include directives and self-includes in C++ files'
+    )
+    parser.add_argument(
+        'path',
+        nargs='?',
+        default='src',
+        help='Root directory to process (default: src)'
+    )
+    parser.add_argument(
+        '--dry-run',
+        action='store_true',
+        help='Show what would be changed without modifying files'
+    )
+    parser.add_argument(
+        '--extensions',
+        nargs='+',
+        default=['.cxx', '.hxx', '.pxx', '.lxx', '.gxx'],
+        help='File extensions to process (default: .cxx .hxx .pxx .lxx .gxx)'
+    )
+    parser.add_argument(
+        '--files',
+        nargs='+',
+        help='Specific files to process (overrides path scanning)'
+    )
+
+    args = parser.parse_args()
+
+    if args.files:
+        # Process specific files (single file mode - minimal output)
+        files = [os.path.abspath(f) for f in args.files if os.path.isfile(f)]
+    else:
+        # Scan directory (batch mode - verbose output)
+        root_dir = os.path.abspath(args.path)
+
+        if not os.path.isdir(root_dir):
+            print(f"Error: {root_dir} is not a directory")
+            return 1
+
+        print(f"Scanning for files in: {root_dir}")
+        print(f"Extensions: {', '.join(args.extensions)}")
+        files = find_files(root_dir, args.extensions)
+        print(f"Found {len(files)} files to process")
+
+    if args.dry_run:
+        print("DRY RUN MODE - No files will be modified\n")
+
+    total_modified = 0
+    total_duplicates = 0
+    total_self_includes = 0
+    single_file_mode = len(files) == 1
+
+    for filepath in sorted(files):
+        modified, duplicates, self_include = process_file(filepath, args.dry_run)
+
+        if modified:
+            total_modified += 1
+            total_duplicates += duplicates
+            if self_include:
+                total_self_includes += 1
+
+            if not single_file_mode:
+                print(f"Modified: {filepath}")
+                if duplicates > 0:
+                    print(f"  - Removed {duplicates} duplicate include(s)")
+                if self_include:
+                    print(f"  - Removed self-include")
+                print()
+
+    # Only show summary in batch mode
+    if not single_file_mode:
+        print("\n" + "="*70)
+        print("SUMMARY")
+        print("="*70)
+        print(f"Files processed: {len(files)}")
+        print(f"Files modified: {total_modified}")
+        print(f"Duplicate includes removed: {total_duplicates}")
+        print(f"Files with self-includes fixed: {total_self_includes}")
+
+        if args.dry_run:
+            print("\nThis was a dry run. Use without --dry-run to apply changes.")
+
+    return 0
+
+
+if __name__ == '__main__':
+    exit(main())
index 9c271ee2ad424835aacee3d45fbbac522df41482..e5383c3dd7a75bd8232352d17b1e2940fe7b45d7 100644 (file)
 #endif
 #ifdef OCCT_DEBUG
   #include <TCollection_AsciiString.hxx>
-  #include <TDF_Tool.hxx>
-  #include <BRepTools.hxx>
 #endif
 #ifdef OCCT_DEBUG
   #include <TCollection_AsciiString.hxx>
-  #include <TDF_Tool.hxx>
   #include <TDF_ChildIterator.hxx>
   #include <TDF_MapIteratorOfLabelMap.hxx>
 
index ed5bb87341a92ce45df35afdd0ac9caab8ff9d0d..2826d7beb1c509e9d7c74344152599501755c9c3 100644 (file)
@@ -78,13 +78,6 @@ typedef TNaming_DataMapOfShapeMapOfShape::Iterator
   #include <TDF_MapIteratorOfLabelMap.hxx>
   #include <TCollection_AsciiString.hxx>
   #include <TDF_Tool.hxx>
-  #include <BRepTools.hxx>
-  #include <TNaming_Tool.hxx>
-  #include <TDF_Tool.hxx>
-  #include <TDF_MapIteratorOfLabelMap.hxx>
-
-  #include <TCollection_AsciiString.hxx>
-  #include <BRepTools.hxx>
 
 void Print_Entry(const TDF_Label& label)
 {
index ea13c8eafb4a9c9a02f3438cb22b3047280e6a19..ef00216a16ada01d96b94b30d1bf5d2747fc8c15 100644 (file)
@@ -16,7 +16,6 @@
 #ifndef TDF_AttributeDoubleMap_HeaderFile
 #define TDF_AttributeDoubleMap_HeaderFile
 
-#include <TDF_Attribute.hxx>
 #include <TDF_Attribute.hxx>
 #include <NCollection_DoubleMap.hxx>
 
index 58396bda6f598fb6bdd7a34d1232609ffbb5d83e..8f850e85503cc5a15739f46d7112c5489a2ad90c 100644 (file)
@@ -19,7 +19,6 @@
 #include <Standard_Type.hxx>
 
 #include <IGESData_IGESEntity.hxx>
-#include <IGESData_FileRecognizer.hxx>
 #include <Standard_NoSuchObject.hxx>
 #include <IGESData_IGESType.hxx>
 
index aa6f4c491e27509443d9b00a70d9b46c2c38225e..341466ee9967d8b6c8d6e5303af3c926e451cb5b 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <IGESData_SpecificModule.hxx>
 #include <IGESData_Protocol.hxx>
-#include <IGESData_GlobalNodeOfSpecificLib.hxx>
 #include <IGESData_IGESEntity.hxx>
 #include <IGESData_SpecificLib.hxx>
 #include <IGESData_NodeOfSpecificLib.hxx>
index a5d9d2f28d1e76d79edf045688a70b2496761bf0..919abf863a45a862ff1b815580653de59eaf526d 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <IGESData_ReadWriteModule.hxx>
 #include <IGESData_Protocol.hxx>
-#include <IGESData_GlobalNodeOfWriterLib.hxx>
 #include <IGESData_IGESEntity.hxx>
 #include <IGESData_WriterLib.hxx>
 #include <IGESData_NodeOfWriterLib.hxx>
index 0df198638ddf1968ecd5ffcf5d88ad1ded2bed94..807b7a4e7d356bc17aa7b59cfa123a2558c44447 100644 (file)
@@ -19,7 +19,6 @@
 #include <Standard_Type.hxx>
 
 #include <IGESData_GlobalNodeOfSpecificLib.hxx>
-#include <IGESData_NodeOfSpecificLib.hxx>
 #include <IGESData_IGESEntity.hxx>
 #include <IGESData_SpecificModule.hxx>
 #include <IGESData_Protocol.hxx>
index 7eec3e2ad3e2b898a83ac9a4bdfd1e5350af064c..be545f1e3de9aac3861aa56e9a706df9661e7a7d 100644 (file)
@@ -19,7 +19,6 @@
 #include <Standard_Type.hxx>
 
 #include <IGESData_GlobalNodeOfWriterLib.hxx>
-#include <IGESData_NodeOfWriterLib.hxx>
 #include <IGESData_IGESEntity.hxx>
 #include <IGESData_ReadWriteModule.hxx>
 #include <IGESData_Protocol.hxx>
index 28c6f18f989af3f0ec0b72792d35d53831e1f332..12b858c25ba0855308d10a820cb61b08f9c69245 100644 (file)
@@ -1270,10 +1270,6 @@ IMPLEMENT_STANDARD_RTTIEXT(RWStepAP214_ReadWriteModule, StepData_ReadWriteModule
 #include <StepDimTol_CommonDatum.hxx>
 #include <StepDimTol_DatumTarget.hxx>
 #include <StepDimTol_PlacedDatumTargetFeature.hxx>
-#include <StepRepr_ValueRange.hxx>
-#include <StepRepr_CompositeShapeAspect.hxx>
-#include <StepRepr_DerivedShapeAspect.hxx>
-#include <StepRepr_Extension.hxx>
 #include "../RWStepRepr/RWStepRepr_RWCompositeShapeAspect.pxx"
 #include "../RWStepRepr/RWStepRepr_RWDerivedShapeAspect.pxx"
 #include "../RWStepRepr/RWStepRepr_RWExtension.pxx"
index d8b880adeef6c9f77e80c937dca4ecc5a0123d12..9b733b46edcbcdfff80bc979e560e61748e0d59c 100644 (file)
@@ -35,8 +35,6 @@ void RWStepVisual_RWPresentationLayerUsage::ReadStep(
     return;
 
   // --- own fields
-#include <StepVisual_PresentationLayerAssignment.hxx>
-#include <StepVisual_PresentationRepresentation.hxx>
   Handle(StepVisual_PresentationLayerAssignment) pla;
   Handle(StepVisual_PresentationRepresentation)  pr;
 
index e245492cbba4a6834247acc7b260e211fc477c24..52e992b6fa995e1b3516267259042a46ae59efc1 100644 (file)
 #include <StepRepr_RealRepresentationItem.hxx>
 #include <StepRepr_ValueRepresentationItem.hxx>
 
-#include <StepRepr_ShapeAspectRelationship.hxx>
-
 #include <TColgp_HArray1OfXYZ.hxx>
 #include <BRepBuilderAPI_MakeEdge.hxx>
 #include <Transfer_ActorOfTransientProcess.hxx>
index 21b36bfe9a258b411dfadf270cb5b4783f0d4f46..ea906bae4236aa198a29a502c139efad64ac878c 100644 (file)
@@ -67,7 +67,6 @@
 #include <XSControl_TransferWriter.hxx>
 #include <XSControl_WorkSession.hxx>
 #include <StepVisual_ContextDependentOverRidingStyledItem.hxx>
-#include <StepShape_ShapeRepresentation.hxx>
 
 namespace
 {
index 5521f9e80fa1f468cabe6fe6769bd5d6fd91076e..b21019bde58c9bb05a7a8492eec86991d9394d63 100644 (file)
@@ -35,8 +35,6 @@
 #include <STEPEdit.hxx>
 #include <STEPEdit_EditContext.hxx>
 #include <STEPEdit_EditSDR.hxx>
-#include <STEPControl_ActorRead.hxx>
-#include <StepData_StepModel.hxx>
 #include <StepSelect_WorkLibrary.hxx>
 #include <STEPSelections_SelectAssembly.hxx>
 #include <STEPSelections_SelectDerived.hxx>
index a5a04f7ede6fcd872e3d48d99beac6872f0c71a7..2158eb47c5588667a8f2ef18ec3c593f4c449483 100644 (file)
@@ -19,7 +19,6 @@
 #include <Standard_Type.hxx>
 
 #include <Standard_Transient.hxx>
-#include <StepData_FileRecognizer.hxx>
 #include <Standard_NoSuchObject.hxx>
 #include <TCollection_AsciiString.hxx>
 
index e009a7d3e7cf354c7f1db60d55dfd86e639c6bfc..ecdf0a3c3025682344b848a16d35c14f9bc9f824 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <StepData_ReadWriteModule.hxx>
 #include <StepData_Protocol.hxx>
-#include <StepData_GlobalNodeOfWriterLib.hxx>
 #include <Standard_Transient.hxx>
 #include <StepData_WriterLib.hxx>
 #include <StepData_NodeOfWriterLib.hxx>
index d825290dde0dc27c16298239d3d6639ad95e8b01..a01a39f7b59e2e86a8bce67b4cf92fd99abc8bb3 100644 (file)
@@ -19,7 +19,6 @@
 #include <Standard_Type.hxx>
 
 #include <StepData_GlobalNodeOfWriterLib.hxx>
-#include <StepData_NodeOfWriterLib.hxx>
 #include <Standard_Transient.hxx>
 #include <StepData_ReadWriteModule.hxx>
 #include <StepData_Protocol.hxx>
index 96792881dd22a2bbe4954eabf4f13ba0217ed3c3..74fd3ece56b7ada34a423ead0fcba8afd7b460b9 100644 (file)
@@ -16,8 +16,6 @@
 #ifndef _StepDimTol_RunoutZoneOrientation_HeaderFile
 #define _StepDimTol_RunoutZoneOrientation_HeaderFile
 
-#include <StepDimTol_RunoutZoneOrientation.hxx>
-
 #include <Standard_Transient.hxx>
 #include <Standard.hxx>
 #include <StepBasic_PlaneAngleMeasureWithUnit.hxx>
index ce30cdf981504e1f926d7619949b42e0d8aaeb91..f35bebbbc4588b7a4156bb30981b0ccbc4ec2cd2 100644 (file)
@@ -16,8 +16,6 @@
 #ifndef _StepDimTol_ToleranceZoneForm_HeaderFile
 #define _StepDimTol_ToleranceZoneForm_HeaderFile
 
-#include <StepDimTol_ToleranceZoneForm.hxx>
-
 #include <Standard_Transient.hxx>
 #include <Standard.hxx>
 #include <TCollection_HAsciiString.hxx>
index 42b655cf340bd3ed873c5fbef0b47170997ae902..be733e0dd2a84c3675feafad7541a8d64a19e093 100644 (file)
@@ -16,8 +16,6 @@
 #ifndef _StepShape_ValueFormatTypeQualifier_HeaderFile
 #define _StepShape_ValueFormatTypeQualifier_HeaderFile
 
-#include <StepShape_ValueFormatTypeQualifier.hxx>
-
 #include <Standard_Transient.hxx>
 #include <Standard.hxx>
 #include <TCollection_HAsciiString.hxx>
index a424423deea0b98cd85932977b4b42e80466e43e..f85e7d378d4c839d24e3e1a3482108286e88172f 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <NCollection_Vector.hxx>
 #include <NCollection_Handle.hxx>
-#include <StepVisual_CoordinatesList.hxx>
 #include <TColStd_HSequenceOfInteger.hxx>
 
 typedef NCollection_Vector<Handle(TColStd_HSequenceOfInteger)>
index 4a11754135d804f4c38e2d134aca2ea0d49050b7..fa5d26523fb6e9d7e4fa6fce5a856dbac32b0b73 100644 (file)
@@ -31,7 +31,6 @@
 #include <XCAFDoc_GeomTolerance.hxx>
 #include <XCAFDoc_Datum.hxx>
 #include <XCAFDoc_DimTol.hxx>
-#include <XCAFDoc_DimTolTool.hxx>
 #include <XCAFDoc_DocumentTool.hxx>
 #include <XCAFDoc_GraphNode.hxx>
 #include <XCAFDoc_ShapeTool.hxx>
index 4c9c0a17170a066e2651a68ccc949d481ce74d6a..511bcbff55bb403b49d95fc93e86392caeeed64c 100644 (file)
@@ -21,7 +21,6 @@
 #include <Standard_Type.hxx>
 
 #include <IFSelect_SelectExtract.hxx>
-#include <Standard_Type.hxx>
 #include <Standard_Integer.hxx>
 class Standard_Transient;
 class Interface_InterfaceModel;
index 87a2135c46f890eb83b82967ad214d183fa0fa6a..1b048958dd228230bf0b3bfcaa41f674b0a2ad05 100644 (file)
@@ -20,7 +20,6 @@
 #include <Standard.hxx>
 #include <Standard_Type.hxx>
 
-#include <Standard_Type.hxx>
 #include <IFSelect_SelectAnyType.hxx>
 class TCollection_AsciiString;
 
index 1d73a318bf32db01093772c731a2d26cfc08b12b..fc901d8f0ad17de7c9b9d4d208dc985a1f64bb3c 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <Interface_GeneralModule.hxx>
 #include <Interface_Protocol.hxx>
-#include <Interface_GlobalNodeOfGeneralLib.hxx>
 #include <Standard_Transient.hxx>
 #include <Interface_GeneralLib.hxx>
 #include <Interface_NodeOfGeneralLib.hxx>
index ed3417eb934bcce028e30f05724459be2246eaaf..00c3f43e3dfe255cfc54360e025b15d165a8138a 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <Interface_ReaderModule.hxx>
 #include <Interface_Protocol.hxx>
-#include <Interface_GlobalNodeOfReaderLib.hxx>
 #include <Standard_Transient.hxx>
 #include <Interface_ReaderLib.hxx>
 #include <Interface_NodeOfReaderLib.hxx>
index cf416ac8099e2b2e094ae2a24c5878327b7e5343..e6742e90d0f4a076d26e4ac3830af7e81f78fddf 100644 (file)
@@ -19,7 +19,6 @@
 #include <Standard_Type.hxx>
 
 #include <Interface_GlobalNodeOfGeneralLib.hxx>
-#include <Interface_NodeOfGeneralLib.hxx>
 #include <Standard_Transient.hxx>
 #include <Interface_GeneralModule.hxx>
 #include <Interface_Protocol.hxx>
index ed0826a89354a9776aba01a9b6fe803486325ba0..50fb6bb0b309918fab007d13a1efcefe024fe78c 100644 (file)
@@ -19,7 +19,6 @@
 #include <Standard_Type.hxx>
 
 #include <Interface_GlobalNodeOfReaderLib.hxx>
-#include <Interface_NodeOfReaderLib.hxx>
 #include <Standard_Transient.hxx>
 #include <Interface_ReaderModule.hxx>
 #include <Interface_Protocol.hxx>
index dc540d533b97cc279a6ee9e128b4ce56e7fe1fc6..6269e41daa892fbeed8407bd492f77d1422f942d 100644 (file)
@@ -20,7 +20,6 @@
 #include <Standard_Handle.hxx>
 #include <Standard_Transient.hxx>
 #include <Standard_Type.hxx>
-#include <Transfer_ActorOfProcessForFinder.hxx>
 #include <Transfer_Binder.hxx>
 #include <Transfer_Finder.hxx>
 #include <Transfer_FindHasher.hxx>
index 02c89e31f3cc0f16d389b5cbf5c7bbc1e1bacf7a..6e31b91786bd3abb3a4a6e0a63fb54b478cbf47b 100644 (file)
@@ -19,7 +19,6 @@
 #include <Standard_DomainError.hxx>
 #include <Standard_Transient.hxx>
 #include <Standard_Type.hxx>
-#include <Transfer_ActorOfProcessForTransient.hxx>
 #include <Transfer_Binder.hxx>
 #include <Transfer_IteratorOfProcessForTransient.hxx>
 #include <Transfer_ProcessForTransient.hxx>
index 89b0ea0047e6c7539f1356946eeff48dfe549484..baf8228ca863c8e82063c67189f02f54953569f7 100644 (file)
@@ -22,7 +22,6 @@
 #include <Message.hxx>
 #include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
-#include <Message_Msg.hxx>
 #include <Message_ProgressScope.hxx>
 #include <Standard_ErrorHandler.hxx>
 #include <Standard_Failure.hxx>
index 552f890fbecaf1960d946c8df24416e843b6cb33..1597665aeada532b8e262de0dc945e1f83c1ea3b 100644 (file)
@@ -22,8 +22,6 @@
 #include <Message.hxx>
 #include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
-#include <Message_Msg.hxx>
-#include <Message_Msg.hxx>
 #include <Message_ProgressScope.hxx>
 #include <Standard_ErrorHandler.hxx>
 #include <Standard_Failure.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <TColStd_MapIteratorOfMapOfInteger.hxx>
 #include <Transfer_ActorOfProcessForTransient.hxx>
-#include <Transfer_ActorOfProcessForTransient.hxx>
 #include <Transfer_Binder.hxx>
 #include <Transfer_FindHasher.hxx>
 #include <Transfer_IteratorOfProcessForTransient.hxx>
-#include <Transfer_IteratorOfProcessForTransient.hxx>
 #include <Transfer_MultipleBinder.hxx>
 #include <Transfer_SimpleBinderOfTransient.hxx>
 #include <Transfer_StatusResult.hxx>
 #include <Transfer_TransferDeadLoop.hxx>
 #include <Transfer_TransferFailure.hxx>
 #include <Transfer_TransferMapOfProcessForTransient.hxx>
-#include <Transfer_TransferMapOfProcessForTransient.hxx>
 #include <Transfer_VoidBinder.hxx>
 
 //=================================================================================================
index 292758bffafa3d7b778938be09ce959c71ecfb9e..73f50fa64a140011f422bf4d8956646408095848 100644 (file)
@@ -1098,7 +1098,6 @@ static Standard_Integer DDataStd_GetVariable(Draw_Interpretor& di,
 }
 
 #include <TDataStd_Relation.hxx>
-#include <TDataStd_Variable.hxx>
 
 //=======================================================================
 // function : SetRelation (DF, entry, expression, var1[, var2, ...])
index 7b20c6444664d7954dda264ad5e207a750faabd9..278320935e56a9c499ac8ee21238ba086791fa56 100644 (file)
@@ -311,7 +311,6 @@ static Standard_Integer OCC486(Draw_Interpretor& di, Standard_Integer argc, cons
 #include <BRepBuilderAPI_MakeEdge.hxx>
 #include <BRepBuilderAPI_MakeWire.hxx>
 #include <TopoDS_Wire.hxx>
-#include <BRepBuilderAPI_MakeFace.hxx>
 #include <Geom_Plane.hxx>
 #include <gp_Pln.hxx>
 #include <BRepPrimAPI_MakePrism.hxx>
index 6ffee92f7929557a79d91526e0baeac25121987b..d43db032d4c1ef3092e0353eac29b9b521a9d48f 100644 (file)
@@ -563,7 +563,6 @@ Standard_Integer OCC165(Draw_Interpretor& di, Standard_Integer n, const char** a
 
 #include <BRepBuilderAPI_MakeEdge.hxx>
 #include <BRepBuilderAPI_MakeWire.hxx>
-#include <BRepBuilderAPI_MakeFace.hxx>
 
 static Standard_Integer OCC297(Draw_Interpretor& di, Standard_Integer /*argc*/, const char** argv)
 
@@ -906,7 +905,6 @@ static Standard_Integer OCC277bug(Draw_Interpretor& di, Standard_Integer nb, con
 
 #include <DDocStd_DrawDocument.hxx>
 #include <TDataStd_Name.hxx>
-#include <Draw.hxx>
 #include <XCAFDoc_ShapeTool.hxx>
 #include <XCAFDoc_DocumentTool.hxx>
 #include <TDF_LabelSequence.hxx>
@@ -1757,7 +1755,6 @@ static Standard_Integer OCC902(Draw_Interpretor& di, Standard_Integer argc, cons
 
 #include <DDF.hxx>
 #include <TPrsStd_AISViewer.hxx>
-#include <TPrsStd_AISPresentation.hxx>
 
 //=======================================================================
 // function : OCC1029_AISTransparency
@@ -4727,7 +4724,6 @@ static Standard_Integer OCC12584(Draw_Interpretor& di, Standard_Integer argc, co
 
 #include <Interface_Macros.hxx>
 #include <Draw_ProgressIndicator.hxx>
-#include <XSControl_WorkSession.hxx>
 #include <Message_ProgressScope.hxx>
 
 #include <Geom_Plane.hxx>
@@ -5032,8 +5028,6 @@ Standard_Integer OCC23429(Draw_Interpretor& /*di*/, Standard_Integer narg, const
   return 0;
 }
 
-#include <ExprIntrp_GenExp.hxx>
-
 Standard_Integer CR23403(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
 
index 61aeaa0ebcf6f66bb0ca04ac4d412f4483ddb010..092a74705e81dde8ebcff6353019c8e1a91d817e 100644 (file)
@@ -518,7 +518,6 @@ static Standard_Integer OCC138LC(Draw_Interpretor& di, Standard_Integer /*argc*/
 }
 
 #include <BRepBndLib.hxx>
-#include <Draw.hxx>
 
 //=================================================================================================
 
index c936417aa2c9f61d835eb9b1d716a4faf68b5b21..e8b7cd3fba90092d86c374d1a44e89fc9ca6051b 100644 (file)
@@ -562,7 +562,6 @@ static Standard_Integer OCC23683(Draw_Interpretor& di, Standard_Integer argc, co
   return 0;
 }
 
-#include <gp_Ax1.hxx>
 #include <Geom_Plane.hxx>
 #include <Geom2d_Circle.hxx>
 #include <BRepPrimAPI_MakeRevol.hxx>
@@ -660,8 +659,6 @@ static Standard_Integer OCC24008(Draw_Interpretor& di, Standard_Integer argc, co
   return 0;
 }
 
-#include <Draw.hxx>
-
 //=================================================================================================
 
 static Standard_Integer OCC23945(Draw_Interpretor& /*di*/, Standard_Integer n, const char** a)
@@ -2981,7 +2978,6 @@ static Standard_Integer OCC25413(Draw_Interpretor& di, Standard_Integer narg, co
 //
 #include <BRepAlgoAPI_Common.hxx>
 #include <BRepAlgoAPI_Fuse.hxx>
-#include <BRepAlgoAPI_Cut.hxx>
 #include <BRepAlgoAPI_Section.hxx>
 //
 #include <TopExp.hxx>
@@ -3983,7 +3979,6 @@ static Standard_Integer OCC26448(Draw_Interpretor& theDI, Standard_Integer, cons
 
 //=================================================================================================
 
-#include <BRepBuilderAPI_MakeEdge.hxx>
 #include <BRepMesh_IncrementalMesh.hxx>
 #include <TCollection_AsciiString.hxx>
 
@@ -4119,8 +4114,6 @@ static Standard_Integer OCC26485(Draw_Interpretor& theDI,
 
 //=================================================================================================
 
-#include <BRepBuilderAPI_MakeWire.hxx>
-
 static Standard_Integer OCC26553(Draw_Interpretor& theDI,
                                  Standard_Integer  theArgc,
                                  const char**      theArgv)
@@ -4388,7 +4381,6 @@ static Standard_Integer OCC26313(Draw_Interpretor& di, Standard_Integer n, const
 // function : OCC26525
 // purpose  : check number of intersection points
 //=======================================================================
-#include <BRepAdaptor_Curve.hxx>
 #include <IntCurveSurface_HInter.hxx>
 
 Standard_Integer OCC26525(Draw_Interpretor& di, Standard_Integer n, const char** a)
@@ -4705,7 +4697,6 @@ static Standard_Integer OCC24537(Draw_Interpretor& theDI, Standard_Integer argc,
   return 0;
 }
 
-#include <TopExp.hxx>
 #include <BRepOffsetAPI_DraftAngle.hxx>
 #include <vector>
 
index 8c7d199121c773fb098a498b7b33512f22798d0e..176a4ad18c68edca9c53c5c13b04db2c00e03543 100644 (file)
@@ -3159,7 +3159,6 @@ Standard_Boolean IsSameGuid(const Standard_GUID& aGuidNull, const Standard_GUID&
 #include <TDataStd_Integer.hxx>
 #include <TDataStd_IntegerArray.hxx>
 #include <TDataStd_IntegerList.hxx>
-#include <TDataStd_Name.hxx>
 #include <TDataStd_Real.hxx>
 #include <TDataStd_RealArray.hxx>
 #include <TDataStd_RealList.hxx>
index 58ab87e4ad387b3ce5ba525973b13e0ae1af41db..81f9c9cee3e604f5f88a695369e64ca2780931dd 100644 (file)
@@ -16,7 +16,6 @@
 #include <QADraw.hxx>
 
 #include <QABugs.hxx>
-#include <QADraw.hxx>
 #include <QADNaming.hxx>
 
 #include <AIS_InteractiveContext.hxx>
index 7575bb50a3accc8c5564cb9323143a32fbd73601..216a391c22571f64853a70e8fcd3bd9c307de3f4 100644 (file)
@@ -28,7 +28,6 @@
 #include <Draw_Appli.hxx>
 #include <Draw.hxx>
 #include <DBRep.hxx>
-#include <BRepTest.hxx>
 #include <LocalAnalysis_SurfaceContinuity.hxx>
 #include <Geom_SphericalSurface.hxx>
 #include <Geom_Surface.hxx>
index 2be98f712a73c37b0e6368d49fdb23318d3ff007..b5bdabb50b2c6c4116224d9f84dcd44b42b2eafb 100644 (file)
@@ -69,8 +69,6 @@
 #include <AIS_ListIteratorOfListOfInteractive.hxx>
 #include <AIS_ListOfInteractive.hxx>
 #include <AIS_ColoredShape.hxx>
-#include <AIS_DisplayMode.hxx>
-#include <AIS_Shape.hxx>
 
 #include <AIS_InteractiveContext.hxx>
 #include <Geom_Plane.hxx>
@@ -83,7 +81,6 @@
 #include <Geom_Axis2Placement.hxx>
 #include <Geom_Axis1Placement.hxx>
 #include <AIS_Trihedron.hxx>
-#include <AIS_Axis.hxx>
 #include <gp_Trsf.hxx>
 #include <gp_Quaternion.hxx>
 #include <TopLoc_Location.hxx>
 #include <AIS_MultipleConnectedInteractive.hxx>
 #include <AIS_ConnectedInteractive.hxx>
 #include <AIS_TextLabel.hxx>
-#include <TopLoc_Location.hxx>
 #include <TColStd_ListOfInteger.hxx>
 #include <TColStd_ListIteratorOfListOfInteger.hxx>
 
 #include <Select3D_SensitivePrimitiveArray.hxx>
 #include <Select3D_SensitivePoint.hxx>
 #include <Select3D_SensitivePoly.hxx>
-#include <BRepAdaptor_Curve.hxx>
 #include <StdPrs_Curve.hxx>
 
 #include <BRepExtrema_ExtPC.hxx>
@@ -910,8 +905,6 @@ static int VPlaneTrihedron(Draw_Interpretor& di, Standard_Integer argc, const ch
 // Draw arg : vaxis AxisName Xa Ya Za Xb Yb Zb
 //==============================================================================
 #include <TopoDS_Edge.hxx>
-#include <TopoDS_Vertex.hxx>
-#include <TopExp.hxx>
 #include <Geom_Line.hxx>
 
 static int VAxisBuilder(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
@@ -1087,9 +1080,6 @@ static int VAxisBuilder(Draw_Interpretor& di, Standard_Integer argc, const char*
 
 //=================================================================================================
 
-#include <TopoDS_Edge.hxx>
-#include <TopoDS_Vertex.hxx>
-#include <TopExp.hxx>
 #include <AIS_Point.hxx>
 #include <Geom_CartesianPoint.hxx>
 
@@ -1853,7 +1843,6 @@ static int VChangePlane(Draw_Interpretor& /*theDi*/,
 // Draw arg : vline LineName  [AIS_PointName] [AIS_PointName]
 //                           [Xa] [Ya] [Za]   [Xb] [Yb] [Zb]
 //==============================================================================
-#include <Geom_CartesianPoint.hxx>
 #include <AIS_Line.hxx>
 
 static int VLineBuilder(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
@@ -2720,9 +2709,7 @@ static int VDrawText(Draw_Interpretor& theDI, Standard_Integer theArgsNb, const
 
 #include <math.h>
 #include <gp_Pnt.hxx>
-#include <Graphic3d_ArrayOfPoints.hxx>
 #include <Graphic3d_ArrayOfPrimitives.hxx>
-#include <Graphic3d_ArrayOfTriangles.hxx>
 #include <Poly_Array1OfTriangle.hxx>
 #include <Poly_Triangle.hxx>
 #include <Poly_Triangulation.hxx>
@@ -2743,9 +2730,6 @@ static int VDrawText(Draw_Interpretor& theDI, Standard_Integer theArgsNb, const
 #include <Graphic3d_AspectFillArea3d.hxx>
 
 #include <BRepPrimAPI_MakeCylinder.hxx>
-#include <TopoDS_Shape.hxx>
-#include <TopExp_Explorer.hxx>
-#include <TopAbs.hxx>
 #include <AIS_InteractiveObject.hxx>
 
 //===============================================================================================
index 6b8e92f6bebc4caf3824af067a79098382613941..c8fcadb4e92a0fee987ce0e5fbf2df13c87461d3 100644 (file)
@@ -378,6 +378,4 @@ public:
   friend class IteratorOfLink;
 };
 
-#include <Poly_CoherentTriangulation.hxx>
-
 #endif
index fa825947433c5bd8b8befef45e2016088ecfa30b..19b4571c09a25e2228190ea1cf0403e656ccc9ca 100644 (file)
@@ -279,8 +279,6 @@ private:
   gp_Ax3 pos;
 };
 
-#include <gp_Lin.hxx>
-
 //=================================================================================================
 
 inline void gp_Pln::Coefficients(Standard_Real& theA,
index 175daf799ca0f254c99cbb56431db5fd9b742762..d8f98c02513db9396aa5bb4e0d913f07f0e88055 100644 (file)
@@ -251,7 +251,6 @@ struct equal_to<gp_Pnt>
 
 #include <gp_Trsf.hxx>
 #include <gp_Vec.hxx>
-#include <gp_XYZ.hxx>
 
 //=================================================================================================
 
index f55be668391dae5e8c75893b094debeef0c8eb75..cc82331ad412456656fe606936a629f26c080937 100644 (file)
@@ -21,9 +21,7 @@
 #include <Standard_NotImplemented.hxx>
 #include <Standard_OutOfRange.hxx>
 
-#include <NCollection_BasePointerVector.hxx>
 #include <NCollection_DefineAlloc.hxx>
-#include <NCollection_Allocator.hxx>
 #include <NCollection_Iterator.hxx>
 #include <NCollection_OccAllocator.hxx>
 #include <StdFail_NotDone.hxx>
index 37fe6ecb6755143ff39fc481124754df3d753a33..ebb44e186bbec0e54061f37fe5c1c4ac54c12e83 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
+#include <OSD_FileIterator.hxx>
+
+#include <OSD_Path.hxx>
+#include <TCollection_AsciiString.hxx>
+
 #ifndef _WIN32
 
   #include <OSD_File.hxx>
-  #include <OSD_FileIterator.hxx>
   #include <OSD_OSDError.hxx>
-  #include <OSD_Path.hxx>
   #include <OSD_WhoAmI.hxx>
-  #include <TCollection_AsciiString.hxx>
 
   #include <dirent.h>
   #include <stdio.h>
@@ -275,9 +277,6 @@ Standard_Integer OSD_FileIterator::Error() const
 
   #include <windows.h>
 
-  #include <OSD_FileIterator.hxx>
-  #include <OSD_Path.hxx>
-  #include <TCollection_AsciiString.hxx>
   #include <TCollection_ExtendedString.hxx>
 
   #define _FD ((PWIN32_FIND_DATAW)myData)
index 4c505e5d32714c87bad76a55c7e64bac93e241ae..bfc9ee56a08c886f815a22f4bfe3e9153608b1cc 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
+#include <OSD_FileNode.hxx>
+
+#include <OSD_Protection.hxx>
+#include <Quantity_Date.hxx>
+#include <Standard_ProgramError.hxx>
+
 #ifndef _WIN32
 
 //----------------------------------------------------------------------------
 //------------------- Linux Sources of OSD_FileNode --------------------------
 //----------------------------------------------------------------------------
 
-  #include <OSD_FileNode.hxx>
   #include <OSD_OSDError.hxx>
   #include <OSD_Path.hxx>
-  #include <OSD_Protection.hxx>
   #include <OSD_WhoAmI.hxx>
-  #include <Quantity_Date.hxx>
   #include <Standard_NullObject.hxx>
-  #include <Standard_ProgramError.hxx>
 
   #include <errno.h>
   #include <fcntl.h>
@@ -390,10 +392,6 @@ Standard_Integer OSD_FileNode::Error() const
   #endif
   #include <windows.h>
 
-  #include <OSD_FileNode.hxx>
-  #include <OSD_Protection.hxx>
-  #include <Quantity_Date.hxx>
-  #include <Standard_ProgramError.hxx>
   #include <TCollection_ExtendedString.hxx>
 
   #include <OSD_WNT.hxx>
index 40d338c91412d0d2ef45311b850183e73ba3c18d..209b716fc3153d528d278f2a091ceeaee1d123f6 100644 (file)
@@ -57,7 +57,6 @@ static OSD_SysType whereAmI()
   #include <Standard_NumericError.hxx>
   #include <Standard_NullObject.hxx>
   #include <Standard_ProgramError.hxx>
-  #include <Standard_ConstructionError.hxx>
   #include <OSD_WhoAmI.hxx>
 
 OSD_Path::OSD_Path()
index f8f2f0caa82f987cff3b2e30e9e2c6a8ea37752d..e42692323fa5515e983170aa9dd83d3c040c7f4c 100644 (file)
@@ -60,8 +60,6 @@
 #include <TopTools_ListOfShape.hxx>
 #include <Standard_Real.hxx>
 #include <NCollection_BaseAllocator.hxx>
-#include <gp_Pnt.hxx>
-#include <gp_Ax2.hxx>
 #include <gp_Dir.hxx>
 
 #include <cmath>
index cd5be7af6fbeb7d776772d5c59748db0f5dabddd..162662dc21411fff10e5bef4fdd790b6cfe513cb 100644 (file)
@@ -39,7 +39,6 @@
 #include <TopOpeBRepTool_SC.hxx>
 
 #ifdef OCCT_DEBUG
-  #include <TopOpeBRep_FFDumper.hxx>
   #include <Geom_TrimmedCurve.hxx>
   #include <Geom_Line.hxx>
 extern Standard_Boolean TopOpeBRep_GettraceBIPS();
index f051d941c7d50c0ae14f9643cf21048bbf892332..fdccd306026ae66bc09de844b16d175756957fc7 100644 (file)
@@ -37,7 +37,6 @@
 #include <TopoDS.hxx>
 #include <Geom2d_Curve.hxx>
 #include <Geom_Plane.hxx>
-#include <gp_Pnt.hxx>
 #include <gp_Pnt2d.hxx>
 #include <ElCLib.hxx>
 #include <ElSLib.hxx>
index bc79102eb4fdaa5f00a25fc936b92def70921361..ea0202c349cbf4c580ed2d77bd4a9ebb2821303a 100644 (file)
@@ -28,7 +28,6 @@
 #ifdef OCCT_DEBUG
 extern Standard_Boolean TopOpeBRepTool_GettraceVC();
   #include <TopOpeBRepBuild_Builder.hxx>
-  #include <gp_Pnt.hxx>
 #endif
 
 //=================================================================================================
index 9a46bd8afcc7be04bbc0f9c7d6971b7127f099a6..ceffed582d5275a850099da84792f64fdd4ff07d 100644 (file)
@@ -58,7 +58,6 @@
 // includes especially needed by the static Project function
 #ifdef DRAW
   #include <TopOpeBRepDS_DRAW.hxx>
-  #include <Geom2d_Curve.hxx>
 #endif
 
 Standard_EXPORT Handle(Geom2d_Curve) BASISCURVE2D(const Handle(Geom2d_Curve)& C);
index a65a45b3953591925a207b087a2592d51421bbc1..8a1cc6dd507b4b8e4ac876c5da85951ad28da47e 100644 (file)
@@ -70,7 +70,6 @@ extern Standard_Boolean TopOpeBRepTool_GettraceCHKBSPL();
 #define CurveImprovement
 #ifdef DRAW
   #include <DrawTrSurf.hxx>
-  #include <Geom2d_Curve.hxx>
 static Standard_Integer NbCalls = 0;
 #endif
 //=================================================================================================
index ccb24ea946ce32b44bf87e7c4a817de6580e8715..583fa1be7a79e3db0dfe6e2520aa782d55847b12 100644 (file)
@@ -33,7 +33,6 @@
   #include <Geom_TrimmedCurve.hxx>
   #include <Geom2d_Line.hxx>
   #include <Geom2d_TrimmedCurve.hxx>
-  #include <BRep_Tool.hxx>
   #include <TopExp_Explorer.hxx>
   #include <TopOpeBRepTool_DRAW.hxx>
 
index d6d4d1900d5713f622be6a8b8881404d1945d791..3b59d1e0a56b4ced26779c5a00e4e21465e455e8 100644 (file)
@@ -26,7 +26,6 @@
   #include <TopOpeBRepTool_define.hxx>
   #include <Geom_Curve.hxx>
   #include <Geom2d_Curve.hxx>
-  #include <TopOpeBRepTool_define.hxx>
 
 Standard_EXPORT void           TopOpeBRepTool_DrawPoint(const gp_Pnt&          P,
                                                         const Draw_MarkerShape T,
index a2b9929b27ae04a69cd7a8c87322dfc8b82e15bf..6fe1054a14ac1cfabda6329c8b8534a894af4249 100644 (file)
@@ -14,7 +14,6 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-#include <Adaptor3d_CurveOnSurface.hxx>
 #include <Adaptor3d_CurveOnSurface.hxx>
 #include <BRep_Tool.hxx>
 #include <BRepBlend_Line.hxx>
index 37d21999c3488f5ad3255ae7d51cd0479e75dd4c..73eb59633259214b4cab1fb5f5b61caa39f41c23 100644 (file)
@@ -33,7 +33,6 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomFill_EvolvedSection, GeomFill_SectionLaw)
 
 #ifdef DRAW
   #include <DrawTrSurf.hxx>
-  #include <Geom_Curve.hxx>
   #include <Geom_BSplineCurve.hxx>
 static Standard_Integer NumSec = 0;
 static Standard_Boolean Affich = 0;
index 37c2305379ae86d1d7bbc50814cb7aac3d5c9c3c..44522579bd50c57c48486c598b944d874e3415fd 100644 (file)
@@ -59,7 +59,6 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomFill_LocationGuide, GeomFill_LocationLaw)
 static Standard_Integer Affich = 0;
   #include <Approx_Curve3d.hxx>
   #include <DrawTrSurf.hxx>
-  #include <GeomFill_TrihedronWithGuide.hxx>
 #endif
 
 //=======================================================================
index 0d4903b23a8b1e9d584ba3566043b4a1098b7095..aa431f29bfe52b631c1f67d98787b242c56d5782 100644 (file)
@@ -49,7 +49,6 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomFill_NSections, GeomFill_SectionLaw)
 #ifdef OCCT_DEBUG
   #ifdef DRAW
     #include <DrawTrSurf.hxx>
-    #include <Geom_Curve.hxx>
   #endif
 static Standard_Boolean Affich = 0;
 static Standard_Integer NbSurf = 0;
index 495a2f0a2a7ffb075e63d2769e96d1fd744e6c04..2362174ee43581b1e464b7bd0970aa2b56cb86ee 100644 (file)
@@ -77,7 +77,6 @@ static Standard_Integer NbSections = 0;
 
 #ifdef DRAW
   #include <DrawTrSurf.hxx>
-  #include <Geom_Curve.hxx>
 #endif
 
 static Standard_Boolean CheckSense(const TColGeom_SequenceOfCurve& Seq1,
index 43e411dcdf5b8fdc2d4071b367a133d28a38e423..3525b1f4877f34748c183e2de7d8977fa7a95e41 100644 (file)
@@ -34,8 +34,6 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomFill_UniformSection, GeomFill_SectionLaw)
 
 #ifdef DRAW
   #include <DrawTrSurf.hxx>
-  #include <Geom_Curve.hxx>
-  #include <Geom_BSplineCurve.hxx>
 static Standard_Integer NumSec = 0;
 static Standard_Boolean Affich = 0;
 #endif
index de4952c78510ed36465909ce911a9d7639969308..9c5a67385faacce2501a15119164bf687bd110ee 100644 (file)
@@ -83,7 +83,6 @@ static Standard_Integer NbProj = 0;
 
 #ifdef OCCT_DEBUG
   #include <OSD_Chronometer.hxx>
-  #include <Geom_Surface.hxx>
 static Standard_Integer Affich = 0;
 #endif
 
index db108ccec7ae8304db21b13435b4acc28261ba5b..a6ccf2e97381deed5414bb0aa8fd337135291c09 100644 (file)
@@ -61,7 +61,6 @@
 #include <IntAna2d_IntPoint.hxx>
 #include <gp_Parab2d.hxx>
 #include <IntAna2d_Conic.hxx>
-#include <IntAna2d_AnaIntersection.hxx>
 #include <gp_Hypr2d.hxx>
 #include <Adaptor3d_Curve.hxx>
 #include <Adaptor3d_Surface.hxx>
index 79ec38baf236bfea6489ad3b979b858a1a6a833f..53a94fae6b6d8ca95c5e4750348f24bc9f85aa58 100644 (file)
@@ -234,8 +234,6 @@ void IntPatch_Intersection::Perform(const Handle(Adaptor3d_Surface)&   S1,
 #include <Extrema_POnSurf.hxx>
 #include <Geom2d_Curve.hxx>
 #include <Geom2dAPI_InterCurveCurve.hxx>
-#include <Geom_Plane.hxx>
-#include <ProjLib_ProjectOnPlane.hxx>
 #include <GeomProjLib.hxx>
 #include <ElCLib.hxx>
 #include <Geom_TrimmedCurve.hxx>
index b081f263e6678a9e27f1e2c67fed11624e364d32..294669b3d800efae252018113be2cc0e221abc4b 100644 (file)
@@ -19,7 +19,6 @@
 #include <BRepAdaptor_Curve.hxx>
 #include <Adaptor3d_Surface.hxx>
 #include <Adaptor3d_CurveOnSurface.hxx>
-#include <Adaptor3d_CurveOnSurface.hxx>
 #include <GeomAbs_SurfaceType.hxx>
 #include <BRep_Tool.hxx>
 #include <Geom_Line.hxx>
@@ -33,7 +32,6 @@
 #include <gp_Dir.hxx>
 #include <gp_Cylinder.hxx>
 #include <gp_Ax1.hxx>
-#include <gp_Lin.hxx>
 
 #include <GeomAdaptor_Curve.hxx>
 #include <GeomAdaptor_Surface.hxx>
@@ -49,7 +47,6 @@
 
 //  Modified by skv - Tue Aug 31 12:13:51 2004 OCC569
 
-#include <Precision.hxx>
 #include <IntSurf_Quadric.hxx>
 #include <math_Function.hxx>
 #include <math_BrentMinimum.hxx>
index ff7932ed96fb10dc2ba4c0830d14e891d8a6f5f2..a14c1e322aa1622afce31559409338a12506a09d 100644 (file)
@@ -64,7 +64,6 @@ static const Standard_Real DERIVEE_PREMIERE_NULLE = 0.000000000001;
 
 #include <IntRes2d_TypeTrans.hxx>
 #include <IntRes2d_Position.hxx>
-#include <IntRes2d_IntersectionPoint.hxx>
 #include <IntRes2d_Transition.hxx>
 
 static long unsigned Mask32[32] = {
index 70d752cdecd395a13dd9f92532e088aa55198450..cebcf10abfed92feb20616892869651aa1075758 100644 (file)
@@ -14,7 +14,6 @@
 #include <Geom_BSplineCurve.hxx>
 #include <HelixGeom_BuilderHelixCoil.hxx>
 #include <HelixGeom_HelixCurve.hxx>
-#include <HelixGeom_HelixCurve.hxx>
 #include <HelixGeom_Tools.hxx>
 
 //=================================================================================================
index 8b02ac639259d3b9d55fa5856971a7fb329df6ff..a2e0302155b1dd575afb1ee16be184292b99503c 100644 (file)
@@ -14,7 +14,6 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-#include <Adaptor3d_CurveOnSurface.hxx>
 #include <Adaptor3d_CurveOnSurface.hxx>
 #include <GeomAdaptor_SurfaceOfLinearExtrusion.hxx>
 #include <Approx_CurveOnSurface.hxx>
index a9aacb5e13a9758d969b9f226a06d06329e01893..c0cfac00320ff57573b16ccdfae5d5b008d00907 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <Adaptor3d_CurveOnSurface.hxx>
 #include <Adaptor3d_Curve.hxx>
-#include <Adaptor3d_CurveOnSurface.hxx>
 #include <BRep_GCurve.hxx>
 #include <BRepLib_ValidateEdge.hxx>
 #include <BRep_PolygonOnTriangulation.hxx>
index 057e969ceded29f28f4f20dc0f06aede1a8b853c..99378d4fc710dc14693797f5607a118767fcc53b 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <Standard_Type.hxx>
 
-#include <MAT_TListNodeOfListOfBisector.hxx>
 #include <MAT_Bisector.hxx>
 #include <MAT_ListOfBisector.hxx>
 
index 768352b687fe66f726e17d53d5f7f147a075ac2c..4bd966b3d2ed8c342b605a6c0969c2aa4fb34ed8 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <Standard_Type.hxx>
 
-#include <MAT_TListNodeOfListOfEdge.hxx>
 #include <MAT_Edge.hxx>
 #include <MAT_ListOfEdge.hxx>
 
index 9ad7f0777b264f14f83e86382a0b47329577a732..e2a128d2586a82951ded9f2910c834de2cd97bd2 100644 (file)
@@ -39,8 +39,6 @@ IMPLEMENT_STANDARD_RTTIEXT(MAT2d_Circuit, Standard_Transient)
   #include <Geom2d_Curve.hxx>
   #include <Geom2d_Parabola.hxx>
   #include <Geom2d_Hyperbola.hxx>
-  #include <Geom2d_TrimmedCurve.hxx>
-  #include <Geom2d_CartesianPoint.hxx>
   #include <Geom2d_Line.hxx>
   #include <Geom2d_Circle.hxx>
 #endif
index 525ea5cf20d061c2b82c616c1ae0bb4135333d07..b89f570f8f49fc9f4b37c46765263560fef4eea8 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <Adaptor3d_Curve.hxx>
 #include <gp_Ax3.hxx>
-#include <GeomAdaptor_SurfaceOfLinearExtrusion.hxx>
 #include <GeomEvaluator_SurfaceOfExtrusion.hxx>
 #include <Standard_NoSuchObject.hxx>
 
index 6aea7c4304f887bce3a2861132d21c03003a5266..ba28084674dae571bba4e402daec91c736600646 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <Adaptor3d_Curve.hxx>
 #include <ElCLib.hxx>
-#include <GeomAdaptor_SurfaceOfRevolution.hxx>
 #include <GeomEvaluator_SurfaceOfRevolution.hxx>
 #include <Standard_NoSuchObject.hxx>
 
index 5e28cddaf4afdf0f474e7ac2e87cf3e62c7827d3..bc10957ad1c30f3dcd495984def5903341b50841 100644 (file)
@@ -40,9 +40,7 @@
 #include <AppParCurves_MultiPoint.hxx>
 #include <StdFail_NotDone.hxx>
 #include <Standard_NoSuchObject.hxx>
-#include <TColStd_Array1OfReal.hxx>
 #include <math_Recipes.hxx>
-#include <math_Crout.hxx>
 
 static int FlatLength(const TColStd_Array1OfInteger& Mults)
 {
index 504c299cf13d142752b2744f9a849d9cf2341b3a..f20e70d40d43f61c199466efd79e0cdc820dc54f 100644 (file)
@@ -16,7 +16,6 @@
 
 //  Modified by skv - Fri Aug 27 12:29:04 2004 OCC6503
 
-#include <Adaptor3d_Surface.hxx>
 #include <Adaptor3d_Surface.hxx>
 #include <Bnd_Box.hxx>
 #include <BndLib.hxx>
index 98fa2f91716c3bdf58a1b37bfd3ac11bfeeaea3f..518bc0cd8d9eb1361e7c6abb3600757efbdb8de0 100644 (file)
@@ -33,7 +33,6 @@
 #include <Geom_ToroidalSurface.hxx>
 #include <Geom_TrimmedCurve.hxx>
 #include <GeomAdaptor_Surface.hxx>
-#include <GeomAdaptor_Surface.hxx>
 #include <GeomLib_IsPlanarSurface.hxx>
 #include <gp_Ax3.hxx>
 #include <gp_Circ.hxx>
index 1ff8bf29e0d085b2c93488183adb858f5d69f55d..c30e247a51bd9e3e8af1dcf39a50c0da83fdd5fb 100644 (file)
@@ -22,7 +22,6 @@
 #include <gp_Dir.hxx>
 #include <GeomAbs_CurveType.hxx>
 #include <GeomAdaptor_Curve.hxx>
-#include <Adaptor3d_Curve.hxx>
 #include <GeomAbs_Shape.hxx>
 #include <TColStd_Array1OfReal.hxx>
 
index a2100d2de799c66fe68b9744a4aafd01ba07e8fe..a395f1fa86305e89cb1893ed4d5a0a187d2eaa02 100644 (file)
@@ -27,7 +27,6 @@
 #include <SelectMgr_StateOfSelection.hxx>
 #include <SelectMgr_ToleranceMap.hxx>
 #include <SelectMgr_TypeOfDepthTolerance.hxx>
-#include <SelectMgr_ViewerSelector.hxx>
 #include <Standard_OStream.hxx>
 #include <Standard_Transient.hxx>
 #include <StdSelect_TypeOfSelectionImage.hxx>