Skip to content

Commit

Permalink
Removed unused and rouge function (FuelLabs#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
Braqzen authored Jun 5, 2022
1 parent cee607d commit 326aafb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions sway-lib-std/src/hash.sw
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@ library hash;

use ::core::num::*;

// Should this be a trait eventually? Do we want to allow people to customize what `!` does?
// Scala says yes, Rust says perhaps...
pub fn not(a: bool) -> bool {
// using direct asm for perf
asm(r1: a, r2) {
eq r2 r1 zero;
r2: bool
}
}

/// Returns the SHA-2-256 hash of `param`.
pub fn sha256<T>(param: T) -> b256 {
let mut result_buffer: b256 = ~b256::min();
Expand Down

0 comments on commit 326aafb

Please sign in to comment.