From 730a0bfb29742b0583230646ced4da39ce9986df Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Tue, 19 Sep 2023 14:39:32 +0200 Subject: [PATCH] [MNT] Move NUM_VERTICES from mplutils.h to the only file it is used in --- src/_path.h | 2 ++ src/mplutils.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_path.h b/src/_path.h index 61c4ed07d0d2..387a0a6737f4 100644 --- a/src/_path.h +++ b/src/_path.h @@ -21,6 +21,8 @@ #include "_backend_agg_basic_types.h" #include "numpy_cpp.h" +const size_t NUM_VERTICES[] = { 1, 1, 1, 2, 3 }; + struct XY { double x; diff --git a/src/mplutils.h b/src/mplutils.h index 6eb89899ca4a..186449e8f63c 100644 --- a/src/mplutils.h +++ b/src/mplutils.h @@ -49,8 +49,6 @@ enum { CLOSEPOLY = 0x4f }; -const size_t NUM_VERTICES[] = { 1, 1, 1, 2, 3, 1 }; - inline int prepare_and_add_type(PyTypeObject *type, PyObject *module) { if (PyType_Ready(type)) {