From e63553e2787b4963a72671377ec93078e89c6dff Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Wed, 11 Apr 2018 14:54:47 -0400 Subject: [PATCH 1/2] Removes some unused math defines/procs --- code/__DEFINES/maths.dm | 3 --- code/__HELPERS/unsorted.dm | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/code/__DEFINES/maths.dm b/code/__DEFINES/maths.dm index b4a44f6d4b..d05956eae1 100644 --- a/code/__DEFINES/maths.dm +++ b/code/__DEFINES/maths.dm @@ -3,11 +3,8 @@ // ( #define NUM_E 2.71828183 -#define NUM_SQRT2 1.41421356 #define PI 3.1415 -#define SPEED_OF_LIGHT 3e8 //not exact but hey! -#define SPEED_OF_LIGHT_SQ 9e+16 #define INFINITY 1e31 //closer then enough #define SHORT_REAL_LIMIT 16777216 diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 8f16e4161f..6417ad8ed0 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -345,16 +345,6 @@ Turf and target are separate in case you want to teleport some distance from a t moblist.Add(M) return moblist -//E = MC^2 -/proc/convert2energy(M) - var/E = M*(SPEED_OF_LIGHT_SQ) - return E - -//M = E/C^2 -/proc/convert2mass(E) - var/M = E/(SPEED_OF_LIGHT_SQ) - return M - // Format a power value in W, kW, MW, or GW. /proc/DisplayPower(powerused) if(powerused < 1000) //Less than a kW