Skip to content

Commit cdf6196

Browse files
committed
Remove unnecessary strategy_test function.
1 parent 9b8edc4 commit cdf6196

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/main/strat_test.cc

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -204,22 +204,6 @@ std::list<ballot_group> coalitional_strategy::get_strategic_election(
204204
return strategic_election;
205205
}
206206

207-
// This should really be replaced with some kind of iteration through
208-
// a vector of strategies, where it tries each a certain number of times
209-
// before going to the next, skipping those that are exhausted... phew.
210-
// things are gonna get so very messy here. I need to take a step back
211-
// and consider how to simplify things, later.
212-
213-
strategy * strategy_test::get_applicable_strategy(int iteration) {
214-
switch (iteration) {
215-
case 0: return strategies[0].get(); // burial
216-
case 1: return strategies[1].get(); // compromising
217-
case 2: return strategies[2].get(); // two-sided
218-
case 3: return strategies[3].get(); // two-sided reverse
219-
default: return &coalstrat;
220-
}
221-
}
222-
223207
bool strategy_test::strategize_for_election(
224208
const std::list<ballot_group> & ballots,
225209
ordering honest_outcome, size_t numcands, bool verbose) {

src/main/strat_test.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ class strategy_test : public Test {
209209
std::vector<std::unique_ptr<strategy> > strategies;
210210
coalitional_strategy coalstrat;
211211

212-
strategy * get_applicable_strategy(int iteration);
213-
214212
// TODO: Call this something else so that we don't get
215213
// "strategy" (manipulation) confused with "strategies"
216214
// (burial, compromise, etc.)

0 commit comments

Comments
 (0)