From 6f6e3309845c72c9fa7dcd4bc65e188823dfb944 Mon Sep 17 00:00:00 2001 From: Putnam Date: Thu, 24 Sep 2020 01:15:22 -0700 Subject: [PATCH] Removes removeNullsFromList, cause it doesn't work. --- code/__HELPERS/_lists.dm | 6 ------ code/modules/atmospherics/machinery/datum_pipeline.dm | 2 +- code/modules/events/brand_intelligence.dm | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/code/__HELPERS/_lists.dm b/code/__HELPERS/_lists.dm index 0171057286..3efb50ef65 100644 --- a/code/__HELPERS/_lists.dm +++ b/code/__HELPERS/_lists.dm @@ -553,12 +553,6 @@ if(D.vars[varname] == value) return D -//remove all nulls from a list -/proc/removeNullsFromList(list/L) - while(L.Remove(null)) - continue - return L - //Copies a list, and all lists inside it recusively //Does not copy any other reference type /proc/deepCopyList(list/l) diff --git a/code/modules/atmospherics/machinery/datum_pipeline.dm b/code/modules/atmospherics/machinery/datum_pipeline.dm index 098df67321..6c732e3ee1 100644 --- a/code/modules/atmospherics/machinery/datum_pipeline.dm +++ b/code/modules/atmospherics/machinery/datum_pipeline.dm @@ -206,7 +206,7 @@ . = other_airs + air if(null in .) stack_trace("[src]([REF(src)]) has one or more null gas mixtures, which may cause bugs. Null mixtures will not be considered in reconcile_air().") - return removeNullsFromList(.) + return listclearnulls(.) /datum/pipeline/proc/reconcile_air() var/list/datum/gas_mixture/GL = list() diff --git a/code/modules/events/brand_intelligence.dm b/code/modules/events/brand_intelligence.dm index f0e4bd4a53..7c55bbfcd1 100644 --- a/code/modules/events/brand_intelligence.dm +++ b/code/modules/events/brand_intelligence.dm @@ -64,7 +64,7 @@ originMachine.visible_message("[originMachine] beeps and seems lifeless.") kill() return - vendingMachines = removeNullsFromList(vendingMachines) + vendingMachines = listclearnulls(vendingMachines) if(!vendingMachines.len) //if every machine is infected for(var/obj/machinery/vending/upriser in infectedMachines) if(prob(70) && !QDELETED(upriser))