Skip to content

Commit

Permalink
clipper.export.h minor code tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusJohnson committed Oct 25, 2023
1 parent 266a706 commit 2310524
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions CPP/Clipper2Lib/include/clipper2/clipper.export.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2310524

Please sign in to comment.