Skip to content

Commit 06666b2

Browse files
committed
Merge #8: Comment out debug prints in non-test code
247e3b6 Comment out debug prints in non-test code (Antoine Poinsot) Pull request description: Those could be converted to logs instead as they are still useful debugging info. Since there is no log enginge, simply comment them out like the rest of the debug prints in the codebase. ACKs for top commit: evanlinjin: ACK 247e3b6 Tree-SHA512: 2b7a12059c12eaec91a7ef043bdd219f2e75447abf8458ad23c124016133b424cb9ff91b7c38a5def787cea66e719165c601988cca313e6859e62181367d2104
2 parents f5c08c2 + 247e3b6 commit 06666b2

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/bnb.rs

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -98,31 +98,31 @@ impl<'a, M: BnbMetric> BnbIter<'a, M> {
9898
selector: cs.clone(),
9999
is_exclusion,
100100
};
101-
println!(
101+
/*println!(
102102
"\t\t(PUSH) branch={} inclusion={} lb={:?} score={:?}",
103103
branch.selector,
104104
!branch.is_exclusion,
105105
branch.lower_bound,
106106
self.metric.score(&branch.selector),
107-
);
107+
);*/
108108
self.queue.push(branch);
109-
} else {
110-
println!(
111-
"\t\t( REJ) branch={} inclusion={} lb={:?} score={:?}",
112-
cs,
113-
!is_exclusion,
114-
bound,
115-
self.metric.score(cs),
116-
);
117-
}
118-
} else {
119-
println!(
120-
"\t\t(NO B) branch={} inclusion={} score={:?}",
121-
cs,
122-
!is_exclusion,
123-
self.metric.score(cs),
124-
);
125-
}
109+
} /* else {
110+
println!(
111+
"\t\t( REJ) branch={} inclusion={} lb={:?} score={:?}",
112+
cs,
113+
!is_exclusion,
114+
bound,
115+
self.metric.score(cs),
116+
);
117+
}*/
118+
} /*else {
119+
println!(
120+
"\t\t(NO B) branch={} inclusion={} score={:?}",
121+
cs,
122+
!is_exclusion,
123+
self.metric.score(cs),
124+
);
125+
}*/
126126
}
127127

128128
fn insert_new_branches(&mut self, cs: &CoinSelector<'a>) {
@@ -143,15 +143,15 @@ impl<'a, M: BnbMetric> BnbIter<'a, M> {
143143
if (next.value, next.weight) != to_ban {
144144
break;
145145
}
146-
let (index, candidate) = exclusion_cs
146+
let (_index, _candidate) = exclusion_cs
147147
.candidates()
148148
.find(|(i, _)| *i == next_index)
149149
.expect("must have index since we are planning to ban it");
150150
if is_first_ban {
151151
is_first_ban = false;
152-
} else {
153-
println!("banning: [{}] {:?}", index, candidate);
154-
}
152+
} /*else {
153+
println!("banning: [{}] {:?}", _index, _candidate);
154+
}*/
155155
exclusion_cs.ban(next_index);
156156
}
157157
self.consider_adding_to_queue(&exclusion_cs, true);

0 commit comments

Comments
 (0)