]> granicus.if.org Git - graphviz/commitdiff
chkPos: remove strcmp micro-optimization
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 16:24:19 +0000 (09:24 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 9 Sep 2021 02:15:59 +0000 (19:15 -0700)
lib/fdpgen/layout.c

index 78b44ca336a4910384f991157bb774071e79351a..2814a9fcd88d449fa3796187a2a1f8ff0e65fd7e 100644 (file)
@@ -345,7 +345,7 @@ static void chkPos(graph_t* g, node_t* n, layout_info* infop, boxf* bbp)
        if (g != infop->rootg) {
            parent =agparent(g);
            pp = agxget(parent, G_coord);
-           if (pp == p || !strcmp(p, pp))
+           if (!strcmp(p, pp))
                return;
        }
        c = '\0';