Skip to content

Commit

Permalink
std::math::big: remove to_str method of the Int struct
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Feb 27, 2024
1 parent 9a78a33 commit 0f6d519
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions std/math/big/int.jule
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,4 @@ impl Int {
}
ret x
}

pub fn to_str(self): str {
let mut s = ""
let mut i = self.nat.bits.len - 1
for i >= 0; i-- {
let b = self.nat.bits[i]
if b == 0b0 {
s += "0"
} else {
s += "1"
}
}
ret s
}
}

0 comments on commit 0f6d519

Please sign in to comment.