From c8684800baad4355e005efcadac6ac96556f4abf Mon Sep 17 00:00:00 2001 From: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Date: Wed, 6 Oct 2021 22:55:07 -0700 Subject: [PATCH] Removes dead code in techwebs, alongside some truly evil macros (#61936) fuck you kevin --- code/__DEFINES/misc.dm | 5 --- .../modules/research/techweb/_techweb_node.dm | 35 ------------------- 2 files changed, 40 deletions(-) diff --git a/code/__DEFINES/misc.dm b/code/__DEFINES/misc.dm index 72fdf22fec3..c634b7053e7 100644 --- a/code/__DEFINES/misc.dm +++ b/code/__DEFINES/misc.dm @@ -463,11 +463,6 @@ GLOBAL_LIST_INIT(pda_styles, sortList(list(MONO, VT, ORBITRON, SHARE))) #define AREASELECT_CORNERA "corner A" #define AREASELECT_CORNERB "corner B" -#define VARSET_FROM_LIST(L, V) if(L && L[#V]) V = L[#V] -#define VARSET_FROM_LIST_IF(L, V, C...) if(L && L[#V] && (C)) V = L[#V] -#define VARSET_TO_LIST(L, V) if(L) L[#V] = V -#define VARSET_TO_LIST_IF(L, V, C...) if(L && (C)) L[#V] = V - #define DICE_NOT_RIGGED 1 #define DICE_BASICALLY_RIGGED 2 #define DICE_TOTALLY_RIGGED 3 diff --git a/code/modules/research/techweb/_techweb_node.dm b/code/modules/research/techweb/_techweb_node.dm index 1effc539ed2..1cf60571b96 100644 --- a/code/modules/research/techweb/_techweb_node.dm +++ b/code/modules/research/techweb/_techweb_node.dm @@ -57,41 +57,6 @@ SSresearch.techweb_nodes -= id return ..() -/datum/techweb_node/serialize_list(list/options) - . = list() - VARSET_TO_LIST(., id) - VARSET_TO_LIST(., display_name) - VARSET_TO_LIST(., hidden) - VARSET_TO_LIST(., starting_node) - VARSET_TO_LIST(., assoc_to_keys(prereq_ids)) - VARSET_TO_LIST(., assoc_to_keys(design_ids)) - VARSET_TO_LIST(., assoc_to_keys(unlock_ids)) - VARSET_TO_LIST(., boost_item_paths) - VARSET_TO_LIST(., autounlock_by_boost) - VARSET_TO_LIST(., research_costs) - VARSET_TO_LIST(., category) - VARSET_TO_LIST(., required_experiments) - VARSET_TO_LIST(., discount_used) - -/datum/techweb_node/deserialize_list(list/input, list/options) - if(!input["id"]) - return - VARSET_FROM_LIST(input, id) - VARSET_FROM_LIST(input, display_name) - VARSET_FROM_LIST(input, hidden) - VARSET_FROM_LIST(input, starting_node) - VARSET_FROM_LIST(input, prereq_ids) - VARSET_FROM_LIST(input, design_ids) - VARSET_FROM_LIST(input, unlock_ids) - VARSET_FROM_LIST(input, boost_item_paths) - VARSET_FROM_LIST(input, autounlock_by_boost) - VARSET_FROM_LIST(input, research_costs) - VARSET_FROM_LIST(input, category) - VARSET_FROM_LIST(input, required_experiments) - VARSET_FROM_LIST(input, discount_used) - Initialize() - return src - /datum/techweb_node/proc/on_design_deletion(datum/design/D) prune_design_id(D.id)