Replace most islist calls in components with length() (#32158)

islist was used to check if a thing was

A. A list of things
B. 1 thing

length was profiled to be faster
This commit is contained in:
Jordan Brown
2017-10-31 16:11:32 -04:00
committed by CitadelStationBot
parent 31e2303e39
commit 55653fa1ee
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
var/list/dc = datum_components
if(dc)
var/all_components = dc[/datum/component]
if(islist(all_components))
if(length(all_components))
for(var/I in all_components)
var/datum/component/C = I
C._RemoveFromParent()