From ebf4d135ba9615731b65ebdda057209b0a76ea7f Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 30 Aug 2017 11:27:18 +1000 Subject: [PATCH] remove unused Platform_NewUuid --- src/Client/Entity.c | 7 ++++--- src/Client/WinPlatform.c | 6 ------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/Client/Entity.c b/src/Client/Entity.c index 9e31f8777..e53c2773d 100644 --- a/src/Client/Entity.c +++ b/src/Client/Entity.c @@ -77,11 +77,12 @@ bool Entity_TouchesAny(AABB* bounds, TouchesAny_Condition condition) { Vector3 v; /* Order loops so that we minimise cache misses */ - for (Int32 y = bbMin.Y; y <= bbMax.Y; y++) { + Int32 x, y, z; + for (y = bbMin.Y; y <= bbMax.Y; y++) { v.Y = (Real32)y; - for (Int32 z = bbMin.Z; z <= bbMax.Z; z++) { + for (z = bbMin.Z; z <= bbMax.Z; z++) { v.Z = (Real32)z; - for (Int32 x = bbMin.X; x <= bbMax.X; x++) { + for (x = bbMin.X; x <= bbMax.X; x++) { if (!World_IsValidPos(x, y, z)) continue; v.X = (Real32)x; diff --git a/src/Client/WinPlatform.c b/src/Client/WinPlatform.c index 11487d5bd..d5958ffe5 100644 --- a/src/Client/WinPlatform.c +++ b/src/Client/WinPlatform.c @@ -41,12 +41,6 @@ void Platform_Log(String message) { /* TODO: log to console */ } -void Platform_NewUuid(UInt8* uuid) { - GUID guid; - CoCreateGuid(&guid); - Platform_MemCpy(uuid, &guid, 16); -} - /* Not worth making this an actual function, just use an inline macro. */ #define Platform_ReturnDateTime(sysTime)\ DateTime time;\