]> granicus.if.org Git - graphviz/commitdiff
lib/mingle: remove commented out branch
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 12 Mar 2022 04:16:39 +0000 (20:16 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 19 Mar 2022 20:28:16 +0000 (13:28 -0700)
This causes -Wconstant-logical-operand warnings, failing a CMake build on macOS.
It seems simplest to just remove this disabled code.

lib/mingle/ink.cpp

index 8b035e5694952ea1b764b467733a49dd99a14f02..2ea0c1b043ac7323889f16dd0a0c4f1a16e14e03 100644 (file)
@@ -295,7 +295,6 @@ double ink(pedge* edges, int numEdges, int *pick, double *ink0, point_t *meet1,
   if (angle > 0 && angle < M_PI){
     if (cbegin + cend > 1 || cbegin > 1 || cend > 1){
       /* no point can be found that satisfies the angular constraints, so we give up and set ink to a large value */
-      if (Verbose && 0) fprintf(stderr,"no point satisfying any angle constraints can be found. cbeg=%f cend=%f\n",cbegin,cend);
       inkUsed = 1000*(*ink0);
       return inkUsed;
     }