summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2011-12-08 22:54:45 +0000
committerTim Angus <tim@ngus.net>2013-01-12 20:16:46 +0000
commit2f868dd20b84e580408d8399420b47db77c47541 (patch)
tree343746ba44b20d4b0514e3d2d7dd7904ed4a7bfe
parent197799b06278e323bc5f79e46c2573842d8f941b (diff)
Removed unused functoin Hunk_Trash.
-rw-r--r--src/qcommon/common.c40
-rw-r--r--src/qcommon/qcommon.h1
2 files changed, 0 insertions, 41 deletions
diff --git a/src/qcommon/common.c b/src/qcommon/common.c
index b35019a4..0c59c2b8 100644
--- a/src/qcommon/common.c
+++ b/src/qcommon/common.c
@@ -1873,46 +1873,6 @@ void Hunk_ClearTempMemory( void ) {
}
/*
-=================
-Hunk_Trash
-=================
-*/
-void Hunk_Trash( void ) {
- int length, i, rnd;
- char *buf, value;
-
- return;
-
- if ( s_hunkData == NULL )
- return;
-
-#ifdef _DEBUG
- Com_Error(ERR_DROP, "hunk trashed");
- return;
-#endif
-
- Cvar_Set("com_jp", "1");
- Hunk_SwapBanks();
-
- if ( hunk_permanent == &hunk_low ) {
- buf = (void *)(s_hunkData + hunk_permanent->permanent);
- } else {
- buf = (void *)(s_hunkData + s_hunkTotal - hunk_permanent->permanent );
- }
- length = hunk_permanent->permanent;
-
- if (length > 0x7FFFF) {
- //randomly trash data within buf
- rnd = random() * (length - 0x7FFFF);
- value = 31;
- for (i = 0; i < 0x7FFFF; i++) {
- value *= 109;
- buf[rnd+i] ^= value;
- }
- }
-}
-
-/*
===================================================================
EVENTS AND JOURNALING
diff --git a/src/qcommon/qcommon.h b/src/qcommon/qcommon.h
index ef73a63c..70a944fd 100644
--- a/src/qcommon/qcommon.h
+++ b/src/qcommon/qcommon.h
@@ -919,7 +919,6 @@ void *Hunk_AllocateTempMemory( int size );
void Hunk_FreeTempMemory( void *buf );
int Hunk_MemoryRemaining( void );
void Hunk_Log( void);
-void Hunk_Trash( void );
void Com_TouchMemory( void );