Skip to content

Commit

Permalink
remove unused fn
Browse files Browse the repository at this point in the history
  • Loading branch information
SwayStar123 committed Oct 16, 2024
1 parent 2bce7ef commit 1eff119
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions sway-lib-std/src/u128.sw
Original file line number Diff line number Diff line change
Expand Up @@ -664,19 +664,6 @@ impl core::ops::Divide for U128 {
}
}

fn u64_checked_mul(a: u64, b: u64) -> Option<u64> {
let of = asm(a: a, b: b, res) {
mul res a b;
of: u64
};

if of != 0 {
return None;
}

Some(a * b)
}

fn u64_checked_add(a: u64, b: u64) -> Option<u64> {
let of = asm(a: a, b: b, res) {
add res a b;
Expand Down

0 comments on commit 1eff119

Please # to comment.