From bab25b2719babefb1527b24f896281caf694ebb8 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 7 Nov 2016 12:28:22 +0100 Subject: [PATCH] remove duplicate and unused class --- src/Mod/PartDesign/App/FeatureSketchBased.cpp | 21 ------------------- src/Mod/PartDesign/App/FeatureSketchBased.h | 1 - 2 files changed, 22 deletions(-) diff --git a/src/Mod/PartDesign/App/FeatureSketchBased.cpp b/src/Mod/PartDesign/App/FeatureSketchBased.cpp index 35c8ed255c..2eff5419ec 100644 --- a/src/Mod/PartDesign/App/FeatureSketchBased.cpp +++ b/src/Mod/PartDesign/App/FeatureSketchBased.cpp @@ -84,27 +84,6 @@ using namespace PartDesign; -// sort bounding boxes according to diagonal length -class ProfileBased::Wire_Compare : public std::binary_function { -public: - bool operator() (const TopoDS_Wire& w1, const TopoDS_Wire& w2) - { - Bnd_Box box1, box2; - if (!w1.IsNull()) { - BRepBndLib::Add(w1, box1); - box1.SetGap(0.0); - } - - if (!w2.IsNull()) { - BRepBndLib::Add(w2, box2); - box2.SetGap(0.0); - } - - return box1.SquareExtent() < box2.SquareExtent(); - } -}; - PROPERTY_SOURCE(PartDesign::ProfileBased, PartDesign::FeatureAddSub) ProfileBased::ProfileBased() diff --git a/src/Mod/PartDesign/App/FeatureSketchBased.h b/src/Mod/PartDesign/App/FeatureSketchBased.h index b447b3ae90..5e411b54c0 100644 --- a/src/Mod/PartDesign/App/FeatureSketchBased.h +++ b/src/Mod/PartDesign/App/FeatureSketchBased.h @@ -143,7 +143,6 @@ protected: /// Check whether the line crosses the face (line and face must be on the same plane) static bool checkLineCrossesFace(const gp_Lin& line, const TopoDS_Face& face); - class Wire_Compare; /// Used to suggest a value for Reversed flag so that material is always removed (Groove) or added (Revolution) from the support