Permalink
Browse files

removed Sys_QueEvent (not used anymore)

  • Loading branch information...
1 parent c50c0cd commit cbe08ab19b7513a91420979265926cd28dee60bd @TheDushan committed Aug 22, 2012
Showing with 0 additions and 37 deletions.
  1. +0 −37 src/engine/sys/sys_win32.cpp
@@ -864,43 +864,6 @@ int eventHead, eventTail;
byte sys_packetReceived[MAX_MSGLEN];
/*
-================
-Sys_QueEvent
-
-A time of 0 will get the current time
-Ptr should either be null, or point to a block of data that can
-be freed by the game later.
-================
-*/
-void Sys_QueEvent( int time, sysEventType_t type, int value, int value2, int ptrLength, void *ptr ) {
- sysEvent_t *ev;
-
- ev = &eventQue[ eventHead & MASK_QUED_EVENTS ];
- if ( eventHead - eventTail >= MAX_QUED_EVENTS ) {
- Com_Printf( "Sys_QueEvent: overflow\n" );
- // we are discarding an event, but don't leak memory
- if ( ev->evPtr ) {
- Z_Free( ev->evPtr );
- }
- eventTail++;
- }
-
- eventHead++;
-
- if ( time == 0 ) {
- time = Sys_Milliseconds();
- }
-
- ev->evTime = time;
- ev->evType = type;
- ev->evValue = value;
- ev->evValue2 = value2;
- ev->evPtrLength = ptrLength;
- ev->evPtr = ptr;
-}
-
-
-/*
==================
WinMain
==================

0 comments on commit cbe08ab

Please sign in to comment.