File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -204,22 +204,6 @@ std::list<ballot_group> coalitional_strategy::get_strategic_election(
204
204
return strategic_election;
205
205
}
206
206
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
-
223
207
bool strategy_test::strategize_for_election (
224
208
const std::list<ballot_group> & ballots,
225
209
ordering honest_outcome, size_t numcands, bool verbose) {
Original file line number Diff line number Diff line change @@ -209,8 +209,6 @@ class strategy_test : public Test {
209
209
std::vector<std::unique_ptr<strategy> > strategies;
210
210
coalitional_strategy coalstrat;
211
211
212
- strategy * get_applicable_strategy (int iteration);
213
-
214
212
// TODO: Call this something else so that we don't get
215
213
// "strategy" (manipulation) confused with "strategies"
216
214
// (burial, compromise, etc.)
You can’t perform that action at this time.
0 commit comments