From 23105245c79afcef9d4872e15b669f073ffb0d3c Mon Sep 17 00:00:00 2001 From: angusj Date: Wed, 25 Oct 2023 17:15:48 +1000 Subject: [PATCH] clipper.export.h minor code tidy --- CPP/Clipper2Lib/include/clipper2/clipper.export.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CPP/Clipper2Lib/include/clipper2/clipper.export.h b/CPP/Clipper2Lib/include/clipper2/clipper.export.h index 6ebac1d3..3f41fad9 100644 --- a/CPP/Clipper2Lib/include/clipper2/clipper.export.h +++ b/CPP/Clipper2Lib/include/clipper2/clipper.export.h @@ -218,14 +218,6 @@ static void GetPolytreeCountAndCStorageSize(const PolyTree64& tree, size_t& cnt, array_len = GetPolyPath64ArrayLen(tree); } -static size_t GetPolyPathDArrayLen(const PolyPathD& pp) -{ - size_t result = 4; // magic + is_hole + child_count + poly_length - result += pp.Polygon().size() * 2; - for (size_t i = 0; i < pp.Count(); ++i) - result += GetPolyPathDArrayLen(*pp[i]); -} - static CPaths64 CreateCPaths64(const Paths64& paths) { size_t cnt, array_len;