From 0f89b538b45c2c028fb8c8abe3c08914f16ae92f Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 25 Dec 2021 19:46:31 -0800 Subject: [PATCH] remove problematic 'agmkin', 'agmkout' These functions were introduced in c9b7b0719776e022d760195fae2727b84be82eda to match `AGMKOUT` and `AGMKIN` (#1212). But there are no exposed prototypes for these. So the only way to call them is to externally prototype them with a best-guess type signature and hope Graphviz never changes. This commit removes them to reduce portability problems. --- lib/cgraph/edge.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/cgraph/edge.c b/lib/cgraph/edge.c index 47e9aa1cf..0b1e195b6 100644 --- a/lib/cgraph/edge.c +++ b/lib/cgraph/edge.c @@ -480,22 +480,6 @@ CGRAPH_API int ageqedge(Agedge_t * e, Agedge_t * f) return AGEQEDGE(e, f); } -#ifdef agmkout -#undef agmkout -#endif -CGRAPH_API Agedge_t *agmkout(Agedge_t * e) -{ - return AGMKOUT(e); -} - -#ifdef agmkin -#undef agmkin -#endif -CGRAPH_API Agedge_t *agmkin(Agedge_t * e) -{ - return AGMKIN(e); -} - #ifdef agtail #undef agtail #endif -- 2.50.1