From 6347d48449aebf61b17088a4ffe1a82524213e08 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 35c8ed255..2eff5419e 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 b447b3ae9..5e411b54c 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