Skip to content

Commit

Permalink
Cleans up some extra args in Destroy() (#184)
Browse files Browse the repository at this point in the history
* Cleans up some extra args in Destroy() (#80642)

## About The Pull Request

After tgstation/tgstation#80628, these shouldn't
be needed anymore right?

## Why It's Good For The Game

Cleans up some vestigial code

## Changelog
EDIT: Not player-facing.

* Cleans up some extra args in Destroy()

---------

Co-authored-by: Bloop <[email protected]>
Co-authored-by: NovaBot <[email protected]>
  • Loading branch information
3 people authored and Iajret committed Jan 3, 2024
1 parent fcde1ea commit 530de5e
Show file tree
Hide file tree
Showing 60 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion code/__HELPERS/heap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
L = new()
cmp = compare

/datum/heap/Destroy(force, ...)
/datum/heap/Destroy(force)
for(var/i in L) // because this is before the list helpers are loaded
qdel(i)
L = null
Expand Down
2 changes: 1 addition & 1 deletion code/__HELPERS/paths/jps.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
f_value = number_tiles + heuristic
// otherwise, no parent node means this is from a subscan lateral scan, so we just need the tile for now until we call [datum/jps/proc/update_parent] on it

/datum/jps_node/Destroy(force, ...)
/datum/jps_node/Destroy(force)
previous_node = null
return ..()

Expand Down
2 changes: 1 addition & 1 deletion code/__HELPERS/paths/path.dm
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
/// Datum that holds the canpass info of this pathing attempt. This is what CanAstarPass sees
var/datum/can_pass_info/pass_info

/datum/pathfind/Destroy(force, ...)
/datum/pathfind/Destroy(force)
. = ..()
SSpathfinder.active_pathing -= src
SSpathfinder.currentrun -= src
Expand Down
2 changes: 1 addition & 1 deletion code/_onclick/hud/radial.dm
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ GLOBAL_LIST_EMPTY(radial_menus)
/// If provided, will display an info button that will put this text in your chat
var/info

/datum/radial_menu_choice/Destroy(force, ...)
/datum/radial_menu_choice/Destroy(force)
. = ..()
QDEL_NULL(image)

Expand Down
2 changes: 1 addition & 1 deletion code/controllers/subsystem/spatial_gridmap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
client_contents = dummy_list
atmos_contents = dummy_list

/datum/spatial_grid_cell/Destroy(force, ...)
/datum/spatial_grid_cell/Destroy(force)
if(force)//the response to someone trying to qdel this is a right proper fuck you
stack_trace("dont try to destroy spatial grid cells without a good reason. if you need to do it use force")
return
Expand Down
2 changes: 1 addition & 1 deletion code/controllers/subsystem/statpanel.dm
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ SUBSYSTEM_DEF(statpanels)
. = ..()
src.parent = parent

/datum/object_window_info/Destroy(force, ...)
/datum/object_window_info/Destroy(force)
atoms_to_show = null
atoms_to_images = null
atoms_to_imagify = null
Expand Down
2 changes: 1 addition & 1 deletion code/datums/ai/_ai_controller.dm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ multiple modular subtrees with behaviors
if(!isnull(new_pawn)) // unit tests need the ai_controller to exist in isolation due to list schenanigans i hate it here
PossessPawn(new_pawn)

/datum/ai_controller/Destroy(force, ...)
/datum/ai_controller/Destroy(force)
set_ai_status(AI_STATUS_OFF)
UnpossessPawn(FALSE)
set_movement_target(type, null)
Expand Down
2 changes: 1 addition & 1 deletion code/datums/armor/_armor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ GLOBAL_LIST_INIT(armor_by_type, generate_armor_type_cache())
/// A version of armor that cannot be modified and will always return itself when attempted to be modified
/datum/armor/immune

/datum/armor/Destroy(force, ...)
/datum/armor/Destroy(force)
if(!force && tag)
return QDEL_HINT_LETMELIVE

Expand Down
2 changes: 1 addition & 1 deletion code/datums/greyscale/_greyscale_config.dm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
if(!name)
stack_trace("Greyscale config object [DebugName()] is missing a name, make sure `name` has been assigned a value.")

/datum/greyscale_config/Destroy(force, ...)
/datum/greyscale_config/Destroy(force)
if(!force)
return QDEL_HINT_LETMELIVE
return ..()
Expand Down
2 changes: 1 addition & 1 deletion code/datums/lazy_template.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
reservations = list()
..()

/datum/lazy_template/Destroy(force, ...)
/datum/lazy_template/Destroy(force)
if(!force)
stack_trace("Something is trying to delete [type]")
return QDEL_HINT_LETMELIVE
Expand Down
2 changes: 1 addition & 1 deletion code/datums/memory/_memory.dm
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
// This happens after everything's all set, remember this for New overrides
generate_memory_name()

/datum/memory/Destroy(force, ...)
/datum/memory/Destroy(force)
memorizer_mind = null
return ..()

Expand Down
2 changes: 1 addition & 1 deletion code/datums/mergers/_merger.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
src.attempt_merge_proc = attempt_merge_proc
Refresh()

/datum/merger/Destroy(force, ...)
/datum/merger/Destroy(force)
for(var/atom/thing as anything in members)
RemoveMember(thing)
return ..()
Expand Down
2 changes: 1 addition & 1 deletion code/datums/mocking/client.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
GLOB.directory[ckey] = src
#endif

/datum/client_interface/Destroy(force, ...)
/datum/client_interface/Destroy(force)
GLOB.directory -= ckey
return ..()

Expand Down
2 changes: 1 addition & 1 deletion code/datums/mood.dm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

mob_parent = null

/datum/mood/Destroy(force, ...)
/datum/mood/Destroy(force)
STOP_PROCESSING(SSmood, src)
QDEL_LIST_ASSOC_VAL(mood_events)
return ..()
Expand Down
2 changes: 1 addition & 1 deletion code/datums/quirks/_quirk_constant_data.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ GLOBAL_LIST_INIT_TYPED(all_quirk_constant_data, /datum/quirk_constant_data, gene
/datum/quirk_constant_data/proc/is_customizable()
return LAZYLEN(customization_options) > 0

/datum/quirk_constant_data/Destroy(force, ...)
/datum/quirk_constant_data/Destroy(force)
var/error_message = "[src], a singleton quirk constant data instance, was destroyed! This should not happen!"
if (force)
error_message += " NOTE: This Destroy() was called with force == TRUE. This instance will be deleted and replaced with a new one."
Expand Down
2 changes: 1 addition & 1 deletion code/datums/wounds/_wound_static_data.dm
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@

return new wound_path_to_generate

/datum/wound_pregen_data/Destroy(force, ...)
/datum/wound_pregen_data/Destroy(force)
var/error_message = "[src], a singleton wound pregen data instance, was destroyed! This should not happen!"
if (force)
error_message += " NOTE: This Destroy() was called with force == TRUE. This instance will be deleted and replaced with a new one."
Expand Down
2 changes: 1 addition & 1 deletion code/datums/wounds/scars/_scars.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/// If false, we will only check to see if a limb has ALL our biostates, instead of just any.
var/check_any_biostates

/datum/scar/Destroy(force, ...)
/datum/scar/Destroy(force)
if(limb)
LAZYREMOVE(limb.scars, src)
if(victim)
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/camera/trackable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
tracking_holder = source
RegisterSignal(tracking_holder, COMSIG_MOB_RESET_PERSPECTIVE, PROC_REF(cancel_target_tracking))

/datum/trackable/Destroy(force, ...)
/datum/trackable/Destroy(force)
tracking_holder = null
tracked_mob = null
STOP_PROCESSING(SSprocessing, src)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
if(!desc)
desc = initial(item_path.desc)

/datum/orderable_item/Destroy(force, ...)
/datum/orderable_item/Destroy(force)
if(item_path)
qdel(item_path)
return ..()
2 changes: 1 addition & 1 deletion code/modules/admin/verbs/highlander_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ GLOBAL_DATUM(highlander_controller, /datum/highlander_controller)
robot.make_scottish()
addtimer(CALLBACK(SSshuttle.emergency, TYPE_PROC_REF(/obj/docking_port/mobile/emergency, request), null, 1), 50)

/datum/highlander_controller/Destroy(force, ...)
/datum/highlander_controller/Destroy(force)
. = ..()
UnregisterSignal(SSdcs, COMSIG_GLOB_CREWMEMBER_JOINED)

Expand Down
2 changes: 1 addition & 1 deletion code/modules/admin/verbs/lua/lua_editor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
ui.set_autoupdate(FALSE)
ui.open()

/datum/lua_editor/Destroy(force, ...)
/datum/lua_editor/Destroy(force)
. = ..()
if(current_state)
LAZYREMOVEASSOC(SSlua.editors, text_ref(current_state), src)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/admin/view_variables/color_matrix_editor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
proxy_view.color = current_color
proxy_view.display_to(owner.mob)

/datum/color_matrix_editor/Destroy(force, ...)
/datum/color_matrix_editor/Destroy(force)
QDEL_NULL(proxy_view)
return ..()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
src.target = target
testing_matrix = matrix(target.transform)

/datum/nobody_wants_to_learn_matrix_math/Destroy(force, ...)
/datum/nobody_wants_to_learn_matrix_math/Destroy(force)
QDEL_NULL(testing_matrix)
return ..()

Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/_common/antag_team.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ GLOBAL_LIST_EMPTY(antagonist_teams)
else
add_member(starting_members)

/datum/team/Destroy(force, ...)
/datum/team/Destroy(force)
GLOB.antagonist_teams -= src
members = null
objectives = null
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/heretic/heretic_knowledge.dm
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
/// A list of weakrefs to all items we've created.
var/list/datum/weakref/created_items

/datum/heretic_knowledge/limited_amount/Destroy(force, ...)
/datum/heretic_knowledge/limited_amount/Destroy(force)
LAZYCLEARLIST(created_items)
return ..()

Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/heretic/influences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// List of minds with the ability to see influences
var/list/datum/mind/tracked_heretics = list()

/datum/reality_smash_tracker/Destroy(force, ...)
/datum/reality_smash_tracker/Destroy(force)
if(GLOB.reality_smash_track == src)
stack_trace("[type] was deleted. Heretics may no longer access any influences. Fix it, or call coder support.")
message_admins("The [type] was deleted. Heretics may no longer access any influences. Fix it, or call coder support.")
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/heretic/knowledge/rust_lore.dm
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@
rusted_turfs += centre
START_PROCESSING(SSprocessing, src)

/datum/rust_spread/Destroy(force, ...)
/datum/rust_spread/Destroy(force)
centre = null
edge_turfs.Cut()
rusted_turfs.Cut()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/// An assoc list of [ref] to [timers] - a list of all the timers of people in the shadow realm currently
var/list/return_timers

/datum/heretic_knowledge/hunt_and_sacrifice/Destroy(force, ...)
/datum/heretic_knowledge/hunt_and_sacrifice/Destroy(force)
heretic_mind = null
LAZYCLEARLIST(target_blacklist)
return ..()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/separatist/separatist.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
src.potential_recruits = potential_recruits
src.department = department

/datum/team/nation/Destroy(force, ...)
/datum/team/nation/Destroy(force)
department = null
UnregisterSignal(SSdcs, COMSIG_GLOB_CREWMEMBER_JOINED)
. = ..()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/traitor/traitor_objective.dm
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
maximum_progression
)

/datum/traitor_objective/Destroy(force, ...)
/datum/traitor_objective/Destroy(force)
handler = null
return ..()

Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/traitor/uplink_handler.dm
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
. = ..()
maximum_potential_objectives = CONFIG_GET(number/maximum_potential_objectives)

/datum/uplink_handler/Destroy(force, ...)
/datum/uplink_handler/Destroy(force)
can_replace_objectives = null
replace_objectives = null
return ..()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/basketball/controller.dm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ GLOBAL_VAR(basketball_game)
GLOB.basketball_game = src
map_deleter = new

/datum/basketball_controller/Destroy(force, ...)
/datum/basketball_controller/Destroy(force)
. = ..()
GLOB.basketball_game = null
end_game()
Expand Down
4 changes: 2 additions & 2 deletions code/modules/capture_the_flag/ctf_controller.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
src.game_id = game_id
GLOB.ctf_games[game_id] = src

/datum/ctf_controller/Destroy(force, ...)
/datum/ctf_controller/Destroy(force)
GLOB.ctf_games[game_id] = null
return ..()

Expand Down Expand Up @@ -207,7 +207,7 @@
team_span = spawner.team_span

///If the team is destroyed all players in that team need their componenet removed.
/datum/ctf_team/Destroy(force, ...)
/datum/ctf_team/Destroy(force)
for(var/player in team_members)
var/datum/component/ctf_player/ctf_player = team_members[player]
ctf_player.end_game()
Expand Down
4 changes: 2 additions & 2 deletions code/modules/cargo/order.dm
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
src.manifest_can_fail = manifest_can_fail
src.can_be_cancelled = can_be_cancelled

/datum/supply_order/Destroy(force, ...)
/datum/supply_order/Destroy(force)
QDEL_NULL(applied_coupon)
return ..()

Expand Down Expand Up @@ -208,7 +208,7 @@
/// Custom type of order who's supply pack can be safely deleted
/datum/supply_order/disposable

/datum/supply_order/disposable/Destroy(force, ...)
/datum/supply_order/disposable/Destroy(force)
QDEL_NULL(pack)
return ..()

Expand Down
2 changes: 1 addition & 1 deletion code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
/// If set to TRUE, will update character_profiles on the next ui_data tick.
var/tainted_character_profiles = FALSE

/datum/preferences/Destroy(force, ...)
/datum/preferences/Destroy(force)
QDEL_NULL(character_preview_view)
QDEL_LIST(middleware)
value_cache = null
Expand Down
2 changes: 1 addition & 1 deletion code/modules/escape_menu/escape_menu.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ GLOBAL_LIST_EMPTY(escape_menus)
if (!isnull(ckey))
GLOB.escape_menus[ckey] = src

/datum/escape_menu/Destroy(force, ...)
/datum/escape_menu/Destroy(force)
QDEL_NULL(base_holder)
QDEL_NULL(page_holder)

Expand Down
2 changes: 1 addition & 1 deletion code/modules/explorer_drone/manager.dm
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
/datum/adventure_browser/ui_assets(mob/user)
return list(get_asset_datum(/datum/asset/simple/adventure))

/datum/adventure_browser/Destroy(force, ...)
/datum/adventure_browser/Destroy(force)
. = ..()
QDEL_NULL(temp_adventure)

Expand Down
2 changes: 1 addition & 1 deletion code/modules/explorer_drone/scanner_array.dm
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ GLOBAL_LIST_INIT(scan_conditions,init_scan_conditions())
SEND_SIGNAL(src,COMSIG_EXOSCAN_INTERRUPTED)
qdel(src)

/datum/exoscan/Destroy(force, ...)
/datum/exoscan/Destroy(force)
. = ..()
deltimer(scan_timer)

Expand Down
2 changes: 1 addition & 1 deletion code/modules/fishing/fishing_minigame.dm
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
bait_height -= difficulty
bait_pixel_height = round(MINIGAME_BAIT_HEIGHT * (bait_height/initial(bait_height)), 1)

/datum/fishing_challenge/Destroy(force, ...)
/datum/fishing_challenge/Destroy(force)
if(!completed)
complete(win = FALSE)
if(fishing_line)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/forensics/_forensics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
src.fibers = LAZY_LISTS_OR(src.fibers, fibers)
check_blood()

/datum/forensics/Destroy(force, ...)
/datum/forensics/Destroy(force)
var/atom/parent_atom = parent.resolve()
if (!isnull(parent_atom))
UnregisterSignal(parent_atom, list(COMSIG_COMPONENT_CLEAN_ACT))
Expand Down
2 changes: 1 addition & 1 deletion code/modules/interview/interview_manager.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ GLOBAL_DATUM_INIT(interviews, /datum/interview_manager, new)
/// Ckeys which are currently in the cooldown system, they will be unable to create new interviews
var/list/cooldown_ckeys = list()

/datum/interview_manager/Destroy(force, ...)
/datum/interview_manager/Destroy(force)
QDEL_LIST(open_interviews)
QDEL_LIST(interview_queue)
QDEL_LIST(closed_interviews)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mafia/abilities/abilities.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
RegisterSignal(game, action_priority, PROC_REF(perform_action_target))
RegisterSignal(game, COMSIG_MAFIA_NIGHT_END, PROC_REF(clean_action_refs))

/datum/mafia_ability/Destroy(force, ...)
/datum/mafia_ability/Destroy(force)
host_role = null
target_role = null
return ..()
Expand Down
Loading

0 comments on commit 530de5e

Please sign in to comment.