1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

string: remove abs()

This commit is contained in:
Alexander Medvednikov 2019-08-12 21:16:01 +03:00
parent ef2ab31e88
commit bc563930f7

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`
}