]> granicus.if.org Git - graphviz/commitdiff
remove redundant conditional clause
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 8 May 2021 03:45:21 +0000 (20:45 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 14 May 2021 15:26:49 +0000 (08:26 -0700)
This is always known-true due to the condition on the containing loop.

lib/vpsc/solve_VPSC.cpp

index e9b035cce52e3e988e8e92c6b3b32f49d3f9233d..596c5f6952b578b140b7c0ded176c80854cf1893 100644 (file)
@@ -382,7 +382,7 @@ bool VPSC::blockGraphIsCyclic() {
                                break;
                        }
                }
-               if(i==graph.end() && !graph.empty()) {
+               if(i==graph.end()) {
                        //cycle found!
                        return true;
                } else {