]> granicus.if.org Git - graphviz/commitdiff
remove dead conditional clause
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 8 May 2021 03:22:12 +0000 (20:22 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 14 May 2021 15:26:49 +0000 (08:26 -0700)
This code is only reachable when this condition is already known-true, due to
the containing loop.

lib/vpsc/solve_VPSC.cpp

index dbe438428ab8f50dd50299ee6e6e68f17a265e3b..420f5b37ffd8fb83715a1b27c8617463707fa001 100644 (file)
@@ -332,7 +332,7 @@ bool VPSC::constraintGraphIsCyclic(const unsigned n, Variable *vs[]) {
                                break;
                        }
                }
-               if(i==graph.end() && !graph.empty()) {
+               if(i==graph.end()) {
                        //cycle found!
                        return true;
                } else {