Skip to content

Commit

Permalink
Merge pull request #68 from Chia-Network/20250205-bram
Browse files Browse the repository at this point in the history
Next step 2, remove some unused my turn/their turn parameters in potato handler
  • Loading branch information
aqk authored Mar 8, 2025
2 parents c241c9f + f073245 commit fa8bf04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/potato_handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,6 @@ impl PotatoHandler {
}

let convert_info_list = |allocator: &mut AllocEncoder,
_my_turn: bool,
my_info_list: &[NodePtr]|
-> Result<Vec<GameStartInfo>, Error> {
let mut result_start_info = Vec::new();
Expand All @@ -843,8 +842,8 @@ impl PotatoHandler {
Ok(result_start_info)
};

let my_result_start_info = convert_info_list(env.allocator, true, &my_info_list)?;
let their_result_start_info = convert_info_list(env.allocator, false, &their_info_list)?;
let my_result_start_info = convert_info_list(env.allocator, &my_info_list)?;
let their_result_start_info = convert_info_list(env.allocator, &their_info_list)?;

Ok((my_result_start_info, their_result_start_info))
}
Expand Down

0 comments on commit fa8bf04

Please sign in to comment.