[MIRROR] removes useless helper proc because SIGN() exists (#2905)

* removes num2sign (#56433)

* removes useless helper proc because SIGN() exists

Co-authored-by: ZeWaka <zewakagamer@gmail.com>
This commit is contained in:
SkyratBot
2021-01-28 02:48:29 +01:00
committed by GitHub
co-authored by ZeWaka
parent ec3fc1589b
commit c710b70b0a
2 changed files with 2 additions and 11 deletions
+2 -2
View File
@@ -93,8 +93,8 @@ GLOBAL_VAR_INIT(cmp_field, "name")
return A.totalResistance() - B.totalResistance()
/proc/cmp_quirk_asc(datum/quirk/A, datum/quirk/B)
var/a_sign = num2sign(initial(A.value) * -1)
var/b_sign = num2sign(initial(B.value) * -1)
var/a_sign = SIGN(initial(A.value) * -1)
var/b_sign = SIGN(initial(B.value) * -1)
// Neutral traits go last.
if(a_sign == 0)
-9
View File
@@ -1436,15 +1436,6 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new)
for(var/i in 1 to items_list[each_item])
new each_item(where_to)
/proc/num2sign(numeric)
if(numeric > 0)
return 1
else if(numeric < 0)
return -1
else
return 0
/proc/CallAsync(datum/source, proctype, list/arguments)
set waitfor = FALSE
return call(source, proctype)(arglist(arguments))