removes unused variables (#29397)

* remove unused variables

* Update space_level.dm
This commit is contained in:
Kyani
2025-05-22 05:14:52 -04:00
committed by GitHub
parent 1254dc51bb
commit 88c949fe46
3 changed files with 2 additions and 11 deletions
@@ -62,7 +62,6 @@ GLOBAL_DATUM_INIT(_preloader, /datum/dmm_suite/preloader, new())
var/datum/dmm_suite/loaded_map/LM = new
// This try-catch is used as a budget "Finally" clause, as the dirt count
// needs to be reset
var/watch = start_watch()
log_debug("[measureOnly ? "Measuring" : "Loading"] map: [fname]")
try
LM.index = 1
@@ -2,8 +2,6 @@
// Ensures that atmos and environment are set up.
/datum/milla_safe_must_sleep/late_setup_level/on_run(turf/bot_left, turf/top_right, smoothTurfs)
var/total_timer = start_watch()
var/subtimer = start_watch()
if(!smoothTurfs)
smoothTurfs = block(bot_left, top_right)
@@ -14,7 +12,6 @@
SSair.setup_turfs(bot_left, top_right)
set_zlevel_freeze(bot_left.z, FALSE)
subtimer = start_watch()
for(var/turf/T in smoothTurfs)
if(T.smoothing_flags)
QUEUE_SMOOTH(T)
@@ -24,7 +21,6 @@
QUEUE_SMOOTH(A)
/proc/empty_rect(low_x,low_y, hi_x,hi_y, z)
var/timer = start_watch()
empty_region(block(low_x, low_y, z, hi_x, hi_y, z))
/proc/empty_region(list/turfs)
+2 -6
View File
@@ -167,7 +167,6 @@ GLOBAL_LIST_INIT(cable_typecache, typecacheof(/obj/structure/cable))
throw EXCEPTION("Init told to resume when z-level still dirty. Z level: '[zpos]'")
var/list/our_atoms = init_list // OURS NOW!!! (Keeping this list to ourselves will prevent hijack)
init_list = list()
var/watch = start_watch()
listclearnulls(our_atoms)
var/list/pipes = typecache_filter_list(our_atoms, GLOB.atmos_machine_typecache)
var/list/cables = typecache_filter_list(our_atoms, GLOB.cable_typecache)
@@ -179,14 +178,11 @@ GLOBAL_LIST_INIT(cable_typecache, typecacheof(/obj/structure/cable))
do_cables(cables)
/datum/space_level/proc/do_pipes(list/pipes)
var/watch = start_watch()
var/init_count = SSair._setup_atmos_machinery(pipes)
watch = start_watch()
init_count = SSair._setup_pipenets(pipes)
SSair._setup_atmos_machinery(pipes)
SSair._setup_pipenets(pipes)
pipes.Cut()
/datum/space_level/proc/do_cables(list/cables)
var/watch = start_watch()
SSmachines.setup_template_powernets(cables)
cables.Cut()