131 lines
4.0 KiB
Diff
131 lines
4.0 KiB
Diff
|
From 3cbb9f0c11205af622f375b6883e7ae00442dd7b Mon Sep 17 00:00:00 2001
|
||
|
From: Uwe <donovaly@users.noreply.github.com>
|
||
|
Date: Sun, 3 Jul 2022 22:51:16 +0200
|
||
|
Subject: [PATCH] [Part] OCCError.h: remove unneeded includes
|
||
|
|
||
|
- also sort includes
|
||
|
---
|
||
|
src/Mod/Part/App/OCCError.h | 38 ++-----------------------
|
||
|
src/Mod/Part/App/OffsetCurvePyImp.cpp | 12 ++++----
|
||
|
src/Mod/Part/App/OffsetSurfacePyImp.cpp | 10 ++-----
|
||
|
3 files changed, 12 insertions(+), 48 deletions(-)
|
||
|
|
||
|
diff --git a/src/Mod/Part/App/OCCError.h b/src/Mod/Part/App/OCCError.h
|
||
|
index 19e8208179..96558ecb0e 100644
|
||
|
--- a/src/Mod/Part/App/OCCError.h
|
||
|
+++ b/src/Mod/Part/App/OCCError.h
|
||
|
@@ -23,43 +23,12 @@
|
||
|
#ifndef _OCCError_h_
|
||
|
#define _OCCError_h_
|
||
|
|
||
|
-# include <Standard_Version.hxx>
|
||
|
# include <Standard_Failure.hxx>
|
||
|
-# include <Standard_AbortiveTransaction.hxx>
|
||
|
-# include <Standard_ConstructionError.hxx>
|
||
|
-# if OCC_VERSION_HEX >= 0x060500
|
||
|
-# include <Standard_DefineException.hxx>
|
||
|
-# endif
|
||
|
-# include <Standard_DimensionError.hxx>
|
||
|
-# include <Standard_DimensionMismatch.hxx>
|
||
|
-# include <Standard_DivideByZero.hxx>
|
||
|
-# include <Standard_DomainError.hxx>
|
||
|
-# include <Standard_ImmutableObject.hxx>
|
||
|
-# include <Standard_LicenseError.hxx>
|
||
|
-# include <Standard_LicenseNotFound.hxx>
|
||
|
-# include <Standard_MultiplyDefined.hxx>
|
||
|
-# include <Standard_NegativeValue.hxx>
|
||
|
-# include <Standard_NoMoreObject.hxx>
|
||
|
-# include <Standard_NoSuchObject.hxx>
|
||
|
-# include <Standard_NotImplemented.hxx>
|
||
|
-# include <Standard_NullObject.hxx>
|
||
|
-# include <Standard_NullValue.hxx>
|
||
|
-# include <Standard_NumericError.hxx>
|
||
|
-# include <Standard_OutOfMemory.hxx>
|
||
|
-# include <Standard_OutOfRange.hxx>
|
||
|
-# include <Standard_Overflow.hxx>
|
||
|
-# include <Standard_ProgramError.hxx>
|
||
|
-# include <Standard_RangeError.hxx>
|
||
|
-# include <Standard_TooManyUsers.hxx>
|
||
|
-# include <Standard_TypeMismatch.hxx>
|
||
|
-# include <Standard_Underflow.hxx>
|
||
|
+# include <Standard_Version.hxx>
|
||
|
|
||
|
-#include <Mod/Part/PartGlobal.h>
|
||
|
-#include <Base/Console.h>
|
||
|
-#include <Base/PyObjectBase.h>
|
||
|
-#include <Base/Interpreter.h>
|
||
|
#include <Base/Exception.h>
|
||
|
-#include <App/Application.h>
|
||
|
+#include <Mod/Part/PartGlobal.h>
|
||
|
+
|
||
|
|
||
|
namespace Part {
|
||
|
PartExport extern PyObject* PartExceptionOCCError;
|
||
|
@@ -88,4 +57,3 @@ PartExport extern PyObject* PartExceptionOCCDimensionError;
|
||
|
|
||
|
#define PY_CATCH_OCC _PY_CATCH_OCC(return(NULL))
|
||
|
#endif // _OCCError_h_
|
||
|
-
|
||
|
diff --git a/src/Mod/Part/App/OffsetCurvePyImp.cpp b/src/Mod/Part/App/OffsetCurvePyImp.cpp
|
||
|
index 295d9efeb8..6b18074a0b 100644
|
||
|
--- a/src/Mod/Part/App/OffsetCurvePyImp.cpp
|
||
|
+++ b/src/Mod/Part/App/OffsetCurvePyImp.cpp
|
||
|
@@ -20,20 +20,20 @@
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
-
|
||
|
#include "PreCompiled.h"
|
||
|
#ifndef _PreComp_
|
||
|
# include <Geom_OffsetCurve.hxx>
|
||
|
#endif
|
||
|
|
||
|
-#include "OCCError.h"
|
||
|
-#include "Geometry.h"
|
||
|
+#include <Base/GeometryPyCXX.h>
|
||
|
+#include <Base/Vector3D.h>
|
||
|
+#include <Base/VectorPy.h>
|
||
|
+
|
||
|
#include "OffsetCurvePy.h"
|
||
|
#include "OffsetCurvePy.cpp"
|
||
|
+#include "Geometry.h"
|
||
|
+#include "OCCError.h"
|
||
|
|
||
|
-#include <Base/GeometryPyCXX.h>
|
||
|
-#include <Base/VectorPy.h>
|
||
|
-#include <Base/Vector3D.h>
|
||
|
|
||
|
using namespace Part;
|
||
|
|
||
|
diff --git a/src/Mod/Part/App/OffsetSurfacePyImp.cpp b/src/Mod/Part/App/OffsetSurfacePyImp.cpp
|
||
|
index 6aa820aa35..792333c817 100644
|
||
|
--- a/src/Mod/Part/App/OffsetSurfacePyImp.cpp
|
||
|
+++ b/src/Mod/Part/App/OffsetSurfacePyImp.cpp
|
||
|
@@ -20,20 +20,16 @@
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
-
|
||
|
#include "PreCompiled.h"
|
||
|
#ifndef _PreComp_
|
||
|
# include <Geom_OffsetSurface.hxx>
|
||
|
# include <memory>
|
||
|
#endif
|
||
|
|
||
|
-#include <Base/VectorPy.h>
|
||
|
-#include <Base/Vector3D.h>
|
||
|
-
|
||
|
#include "OCCError.h"
|
||
|
-#include "Geometry.h"
|
||
|
-#include <Mod/Part/App/OffsetSurfacePy.h>
|
||
|
-#include <Mod/Part/App/OffsetSurfacePy.cpp>
|
||
|
+#include "OffsetSurfacePy.h"
|
||
|
+#include "OffsetSurfacePy.cpp"
|
||
|
+
|
||
|
|
||
|
using namespace Part;
|
||
|
|
||
|
--
|
||
|
2.38.1
|
||
|
|