summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tools/poly.hxx4
-rw-r--r--tools/source/generic/poly2.cxx14
2 files changed, 1 insertions, 17 deletions
diff --git a/include/tools/poly.hxx b/include/tools/poly.hxx
index 065eb6cb1cb8..4f8a6d8119c3 100644
--- a/include/tools/poly.hxx
+++ b/include/tools/poly.hxx
@@ -192,9 +192,7 @@ private:
enum class PolyClipOp {
INTERSECT,
- UNION,
- DIFF,
- XOR
+ UNION
};
TOOLS_DLLPRIVATE void ImplDoOperation( const tools::PolyPolygon& rPolyPoly, tools::PolyPolygon& rResult, PolyClipOp nOperation ) const;
diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx
index df7c51545d92..144fe9a4e00e 100644
--- a/tools/source/generic/poly2.cxx
+++ b/tools/source/generic/poly2.cxx
@@ -339,20 +339,6 @@ void PolyPolygon::ImplDoOperation( const tools::PolyPolygon& rPolyPoly, tools::P
break;
}
- case PolyClipOp::DIFF:
- {
- // subtract B from A (DIFF)
- aMergePolyPolygonA = basegfx::tools::solvePolygonOperationDiff(aMergePolyPolygonA, aMergePolyPolygonB);
- break;
- }
-
- case PolyClipOp::XOR:
- {
- // compute XOR between poly A and B
- aMergePolyPolygonA = basegfx::tools::solvePolygonOperationXor(aMergePolyPolygonA, aMergePolyPolygonB);
- break;
- }
-
default:
case PolyClipOp::INTERSECT:
{