From 9f607bc51cce54e26c62f0356d9597f07f7e2f2a Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 29 Apr 2012 13:24:44 -0400 Subject: [PATCH] Removed unneeded code. --- dlib/graph_cuts/find_max_factor_graph_potts.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/dlib/graph_cuts/find_max_factor_graph_potts.h b/dlib/graph_cuts/find_max_factor_graph_potts.h index 08e7c20a2..9a8df08a9 100644 --- a/dlib/graph_cuts/find_max_factor_graph_potts.h +++ b/dlib/graph_cuts/find_max_factor_graph_potts.h @@ -151,9 +151,6 @@ namespace dlib else sink_flows(i,1) = temp; - source_flows(i,1) = 0; - sink_flows(i,0) = 0; - for (unsigned long j = 0; j < g.number_of_neighbors(i); ++j) { flows(i,j) = g.factor_value_disagreement(i, g.get_neighbor(i,j));