From 5472a71aeaceb1b823ef695f3b7db912b5379095 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 22 May 2022 17:33:22 +0200 Subject: [PATCH] common: mark 'arrow_length' static This function is no longer used outside of its containing file. --- lib/common/arrows.c | 2 +- lib/common/render.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/common/arrows.c b/lib/common/arrows.c index 402f38e98..a9394882c 100644 --- a/lib/common/arrows.c +++ b/lib/common/arrows.c @@ -236,7 +236,7 @@ void arrow_flags(Agedge_t * e, int *sflag, int *eflag) } } -double arrow_length(edge_t * e, int flag) +static double arrow_length(edge_t * e, int flag) { double lenfact = 0.0; int f, i; diff --git a/lib/common/render.h b/lib/common/render.h index 9bdda0bc9..fa6ddde42 100644 --- a/lib/common/render.h +++ b/lib/common/render.h @@ -62,7 +62,6 @@ extern "C" { RENDER_API boxf arrow_bb(pointf p, pointf u, double arrowsize); RENDER_API void arrow_gen(GVJ_t * job, emit_state_t emit_state, pointf p, pointf u, double arrowsize, double penwidth, int flag); - RENDER_API double arrow_length(edge_t * e, int flag); RENDER_API int arrowEndClip(edge_t*, pointf*, int, int , bezier*, int eflag); RENDER_API int arrowStartClip(edge_t*, pointf* ps, int, int, bezier*, int sflag); RENDER_API void arrowOrthoClip(edge_t*, pointf* ps, int, int, bezier*, int sflag, int eflag); -- 2.40.0