Skip to content

Commit

Permalink
chore: unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
DonWick32 committed Feb 7, 2024
1 parent cead954 commit 8c870ef
Show file tree
Hide file tree
Showing 6 changed files with 238 additions and 217 deletions.
3 changes: 3 additions & 0 deletions src/api/attack/rating.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ fn trophy_scale(old_attacker_rating: f32, old_defender_rating: f32) -> (f32, f32
}

/* change rating datatype to int */
#[allow(dead_code)]
fn new_rating(
old_attacker_rating: i32,
old_defender_rating: i32,
Expand Down Expand Up @@ -54,6 +55,7 @@ fn new_rating(
(new_attacker_rating, new_defender_rating)
}

#[allow(dead_code)]
fn bonus_trophies(
attacker_rating: &mut i32,
defender_rating: &mut i32,
Expand All @@ -64,6 +66,7 @@ fn bonus_trophies(
}

impl Game {
#[allow(dead_code)]
pub fn update_rating(
&self,
metrics: (i32, i32, i32),
Expand Down
Loading

0 comments on commit 8c870ef

Please sign in to comment.