From fbf983468643c11e1c6cc1306f90170f31274e59 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Fri, 8 Oct 2021 14:28:05 +0200 Subject: [PATCH] [MIRROR] Removes dead code in techwebs, alongside some truly evil macros [MDB IGNORE] (#8652) * Removes dead code in techwebs, alongside some truly evil macros (#61936) fuck you kevin * Removes dead code in techwebs, alongside some truly evil macros Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> --- 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 c9d55c1bc5a..b24bcc44468 100644 --- a/code/__DEFINES/misc.dm +++ b/code/__DEFINES/misc.dm @@ -474,11 +474,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)