Skip to content

Commit fa8bf04

Browse files
authored
Merge pull request #68 from Chia-Network/20250205-bram
Next step 2, remove some unused my turn/their turn parameters in potato handler
2 parents c241c9f + f073245 commit fa8bf04

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/potato_handler/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,6 @@ impl PotatoHandler {
827827
}
828828

829829
let convert_info_list = |allocator: &mut AllocEncoder,
830-
_my_turn: bool,
831830
my_info_list: &[NodePtr]|
832831
-> Result<Vec<GameStartInfo>, Error> {
833832
let mut result_start_info = Vec::new();
@@ -843,8 +842,8 @@ impl PotatoHandler {
843842
Ok(result_start_info)
844843
};
845844

846-
let my_result_start_info = convert_info_list(env.allocator, true, &my_info_list)?;
847-
let their_result_start_info = convert_info_list(env.allocator, false, &their_info_list)?;
845+
let my_result_start_info = convert_info_list(env.allocator, &my_info_list)?;
846+
let their_result_start_info = convert_info_list(env.allocator, &their_info_list)?;
848847

849848
Ok((my_result_start_info, their_result_start_info))
850849
}

0 commit comments

Comments
 (0)