ref: de3b3f4e656b21469bc4684f55b2b8720e2310fc
parent: 6172655162d0726b7c0b9ddcd9c3981c31bf5e50
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Oct 12 11:59:14 EDT 2023
cl: no need to memset efrags/entities; remove Hunk_Memset0
--- a/cl_main.c
+++ b/cl_main.c
@@ -51,12 +51,6 @@
memset(&cl, 0, sizeof cl);
SZ_Clear (&cls.message);
-
-// clear other arrays
- Hunk_Memset0(cl_efrags);
- Hunk_Memset0(cl_entities);
- Hunk_Memset0(cl_temp_entities);
-
memset(cl_dlights, 0, sizeof cl_dlights);
memset(cl_lightstyle, 0, sizeof cl_lightstyle);
memset(cl_beams, 0, sizeof cl_beams);
--- a/zone.c
+++ b/zone.c
@@ -99,16 +99,6 @@
return m+1;
}
-void
-Hunk_Memset0(void *p)
-{
- mem_t *m;
-
- m = p;
- m--;
- memset(p, 0, m->size);
-}
-
void *
Hunk_Mark(void)
{
--- a/zone.h
+++ b/zone.h
@@ -10,7 +10,6 @@
void Hunk_CacheFrom(mem_user_t *c, void *p);
void *Hunk_Alloc(int size);
void *Hunk_Double(void *p);
-void Hunk_Memset0(void *p);
void *Hunk_Mark(void);
void Hunk_FreeToMark(void *mark);
void *Hunk_TempAlloc(int size);