From b701fc84894201a051d481968bba317638d152cb Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sat, 16 Apr 2022 15:14:15 +0200 Subject: [PATCH] remove unused shape_t struct --- CHANGELOG.md | 2 ++ lib/common/types.h | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 245a1368b..37e6eb3d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **Breaking**: The `mark` field of the `Agnodeinfo_t` struct is now a `size_t` instead of a `char`. +- **Breaking**: The unused `shape_t` struct has been removed from the public + header `types.h` - the `mingle`, `diffimg`, and `edgepaint` binaries are now included in the CMake build system - the `vimdot` script is now installed by the CMake build system on operating diff --git a/lib/common/types.h b/lib/common/types.h index 38aef87af..30598e53e 100644 --- a/lib/common/types.h +++ b/lib/common/types.h @@ -160,13 +160,6 @@ extern "C" { #define STROKE_PENDOWN (1 << 2) #define STROKE_VERTICES_ALLOCATED (1 << 3) - typedef struct shape_t { /* mutable shape information for a node */ - int nstrokes; /* number of strokes in array */ - stroke_t *strokes; /* array of strokes */ - /* The last stroke must always be closed, but can be pen_up. - * It is used as the clipping path */ - } shape_t; - typedef struct shape_functions { /* read-only shape functions */ void (*initfn) (node_t *); /* initializes shape from node u.shape_info structure */ void (*freefn) (node_t *); /* frees shape from node u.shape_info structure */ -- 2.40.0