string: remove abs()

pull/1593/head
Alexander Medvednikov 2019-08-12 21:16:01 +03:00
parent ef2ab31e88
commit bc563930f7
1 changed files with 0 additions and 7 deletions

View File

@ -724,13 +724,6 @@ fn (u ustring) free() {
u.runes.free()
}
fn abs(a int) int {
if a >= 0 {
return a
}
return -a
}
pub fn (c byte) is_digit() bool {
return c >= `0` && c <= `9`
}