]> granicus.if.org Git - graphviz/commitdiff
remove problematic 'agmkin', 'agmkout'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 26 Dec 2021 03:46:31 +0000 (19:46 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 4 Jan 2022 02:05:42 +0000 (18:05 -0800)
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

index 47e9aa1cf41dcb297e0eb3dbeb046ab47b342bf3..0b1e195b6575ada891cc0becb31148c76222db1d 100644 (file)
@@ -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