From: Matthew Fernandez Date: Sat, 8 May 2021 03:22:12 +0000 (-0700) Subject: remove dead conditional clause X-Git-Tag: 2.47.2~11^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16242d2fc70007dcd9d92516569c096c871f9ea4;p=graphviz remove dead conditional clause This code is only reachable when this condition is already known-true, due to the containing loop. --- diff --git a/lib/vpsc/solve_VPSC.cpp b/lib/vpsc/solve_VPSC.cpp index dbe438428..420f5b37f 100644 --- a/lib/vpsc/solve_VPSC.cpp +++ b/lib/vpsc/solve_VPSC.cpp @@ -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 {