From 99885de83f2e82a56e012b233a8789e3a857c10c Mon Sep 17 00:00:00 2001 From: Matt Atlas Date: Sun, 31 May 2020 11:25:28 +0200 Subject: [PATCH] End 512 compiler support for good (#8951) --- code/__defines/lists.dm | 4 ---- code/__defines/misc.dm | 9 --------- code/_helpers/unsorted.dm | 6 ------ code/global.dm | 4 ++-- 4 files changed, 2 insertions(+), 21 deletions(-) diff --git a/code/__defines/lists.dm b/code/__defines/lists.dm index b77cd7d6e21..640fa6be8fd 100644 --- a/code/__defines/lists.dm +++ b/code/__defines/lists.dm @@ -16,10 +16,6 @@ #define safepick(L) LAZYPICK(L,null) #define listgetindex(L,I) LAZYACCESS(L,I) -#if DM_VERSION < 513 -#define islist(L) istype(L,/list) -#endif - // binary search sorted insert // IN: Object to be inserted // LIST: List to insert object into diff --git a/code/__defines/misc.dm b/code/__defines/misc.dm index 0ce0d87807f..1e622cb16e2 100644 --- a/code/__defines/misc.dm +++ b/code/__defines/misc.dm @@ -291,17 +291,8 @@ #define NL_PERMANENT_DISABLE 2 // Used for creating soft references to objects. A manner of storing an item reference -// as text so you don't necessarily fuck with an object's ability to be garbage collected. -#if DM_VERSION < 513 - -#define SOFTREF(A) "\ref[A]" - -#else - #define SOFTREF(A) ref(A) -#endif - // This only works on 511 because it relies on 511's `var/something = foo = bar` syntax. #define WEAKREF(D) (istype(D, /datum) && !D:gcDestroyed ? (D:weakref || (D:weakref = new/datum/weakref(D))) : null) diff --git a/code/_helpers/unsorted.dm b/code/_helpers/unsorted.dm index 13cc266b926..59d048f97c4 100644 --- a/code/_helpers/unsorted.dm +++ b/code/_helpers/unsorted.dm @@ -556,12 +556,6 @@ Turf and target are seperate in case you want to teleport some distance from a t /proc/between(var/low, var/middle, var/high) return max(min(middle, high), low) -#if DM_VERSION < 513 -proc/arctan(x) - var/y=arcsin(x/sqrt(1+x*x)) - return y -#endif - //returns random gauss number proc/GaussRand(var/sigma) var/x,y,rsq diff --git a/code/global.dm b/code/global.dm index 29edf35ae8a..d69146ad4c2 100644 --- a/code/global.dm +++ b/code/global.dm @@ -1,6 +1,6 @@ //#define TESTING -#if DM_VERSION < 512 -#error Your version of BYOND is too old to compile the code. At least BYOND 512 is required. +#if DM_VERSION < 513 +#error Your version of BYOND is too old to compile the code. At least BYOND 513 is required. #endif