Skip to content

Commit

Permalink
[Part] OCCError.h: remove unneeded includes
Browse files Browse the repository at this point in the history
- also sort includes
  • Loading branch information
donovaly committed Jul 3, 2022
1 parent 0a5a7f6 commit 9a41845
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 46 deletions.
36 changes: 3 additions & 33 deletions src/Mod/Part/App/OCCError.h
Expand Up @@ -23,41 +23,12 @@
#ifndef _OCCError_h_
#define _OCCError_h_

# include <Standard_Version.hxx>
# include <Standard_Failure.hxx>
# include <Standard_AbortiveTransaction.hxx>
# include <Standard_ConstructionError.hxx>
# include <Standard_DefineException.hxx>
# 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;
Expand Down Expand Up @@ -86,4 +57,3 @@ PartExport extern PyObject* PartExceptionOCCDimensionError;

#define PY_CATCH_OCC _PY_CATCH_OCC(return(NULL))
#endif // _OCCError_h_

12 changes: 6 additions & 6 deletions src/Mod/Part/App/OffsetCurvePyImp.cpp
Expand Up @@ -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;

Expand Down
10 changes: 3 additions & 7 deletions src/Mod/Part/App/OffsetSurfacePyImp.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 9a41845

Please sign in to comment.