]> granicus.if.org Git - graphviz/commitdiff
arrow_bb: remove unused 'flag' parameter
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Aug 2021 03:30:04 +0000 (20:30 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 18 Aug 2021 14:32:29 +0000 (07:32 -0700)
lib/common/arrows.c
lib/common/emit.c
lib/common/render.h
lib/common/utils.c

index ab1f2fb2b351e349ef3cd40b862d63fd5616d54b..90e60a127b2e59c8ce880e9a68fb288841323268 100644 (file)
@@ -717,7 +717,7 @@ static pointf arrow_gen_type(GVJ_t * job, pointf p, pointf u, double arrowsize,
     return p;
 }
 
-boxf arrow_bb(pointf p, pointf u, double arrowsize, int flag)
+boxf arrow_bb(pointf p, pointf u, double arrowsize)
 {
     double s;
     boxf bb;
index 16140810a4100e3a374a6c5f05462bcf3ffa1f19..067067c70fe752ee4e918c2c9ee0612088561838 100644 (file)
@@ -3922,11 +3922,11 @@ static void init_splines_bb(splines *spl)
             EXPANDBB(bb, b);
         }
         if (bz.sflag) {
-            b = arrow_bb(bz.sp, bz.list[0], 1, bz.sflag);
+            b = arrow_bb(bz.sp, bz.list[0], 1);
             EXPANDBB(bb, b);
         }
         if (bz.eflag) {
-            b = arrow_bb(bz.ep, bz.list[bz.size - 1], 1, bz.eflag);
+            b = arrow_bb(bz.ep, bz.list[bz.size - 1], 1);
             EXPANDBB(bb, b);
         }
     }
index 381441ea6e75d77ca40f5ea57ccba47c39171a04..62fe5bfb8debff04dc511f42b725ff7382eb587d 100644 (file)
@@ -67,7 +67,7 @@ extern "C" {
 
        RENDER_API void add_box(path *, boxf);
     RENDER_API void arrow_flags(Agedge_t * e, int *sflag, int *eflag);
-    RENDER_API boxf arrow_bb(pointf p, pointf u, double arrowsize, int flag);
+    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);
index a38b577ee8e2e164336db2a3aad6c0c714435644..9ed49f735117018e934cfa6d88718efae86d4bab 100644 (file)
@@ -1628,7 +1628,7 @@ boolean overlap_label(textlabel_t *lp, boxf b)
 
 static boolean overlap_arrow(pointf p, pointf u, double scale, int flag, boxf b)
 {
-    if (OVERLAP(b, arrow_bb(p, u, scale, flag))) {
+    if (OVERLAP(b, arrow_bb(p, u, scale))) {
        /* FIXME - check inside arrow shape */
        return TRUE;
     }