Skip to content

Commit

Permalink
remove impl for slices, because it cannot be tested
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Jul 27, 2024
1 parent e79a600 commit 4cf6137
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions sway-lib-core/src/ops.sw
Original file line number Diff line number Diff line change
Expand Up @@ -1258,31 +1258,3 @@ pub fn ok_str_eq() {
assert("" != "a");
assert("a" != "b");
}

//impl<T> Eq for __slice[T]
//where
// T: Eq
//{
// fn eq(self, other: Self) -> bool {
// let self_qty = self.len();
// let other_qty = other.len();
//
// if self_qty != other_qty {
// return false
// }
//
// let mut i = 0u64;
// while i < self_qty {
// let self_elem = __slice_elem(self, i);
// let other_elem = __slice_elem(other, i);
//
// if self_elem != other_elem {
// return false;
// }
//
// i += 1;
// }
//
// true
// }
//}

0 comments on commit 4cf6137

Please sign in to comment.