Permalink
Browse files

Remove a couple now unused functions

  • Loading branch information...
Kangz committed Nov 1, 2015
1 parent 8720251 commit 0bc48c15bb6edc144885b5a524ec7c99885dd0f2
Showing with 0 additions and 27 deletions.
  1. +0 −10 daemon/src/engine/qcommon/huffman.cpp
  2. +0 −12 daemon/src/engine/qcommon/msg.cpp
  3. +0 −5 daemon/src/engine/qcommon/qcommon.h
@@ -61,16 +61,6 @@ void Huff_putBit( int bit, byte *fout, int *offset )
*offset = bloc;
}

int Huff_getBloc()
{
return bloc;
}

void Huff_setBloc( int _bloc )
{
bloc = _bloc;
}

//bani - optimized version
//optimization works on gcc 3.x, but not 2.95 ? most curious.
int Huff_getBit( byte *fin, int *offset )
@@ -464,18 +464,6 @@ int MSG_ReadChar( msg_t *msg )
return c;
}

int MSG_LookaheadByte( msg_t *msg )
{
const int bloc = Huff_getBloc();
const int readcount = msg->readcount;
const int bit = msg->bit;
int c = MSG_ReadByte( msg );
Huff_setBloc( bloc );
msg->readcount = readcount;
msg->bit = bit;
return c;
}

int MSG_ReadByte( msg_t *msg )
{
int c;
@@ -104,7 +104,6 @@ char *MSG_ReadBigString( msg_t *sb );
char *MSG_ReadStringLine( msg_t *sb );
float MSG_ReadAngle16( msg_t *sb );
void MSG_ReadData( msg_t *sb, void *buffer, int size );
int MSG_LookaheadByte( msg_t *msg );

void MSG_WriteDeltaUsercmd( msg_t *msg, usercmd_t *from, usercmd_t *to );
void MSG_ReadDeltaUsercmd( msg_t *msg, usercmd_t *from, usercmd_t *to );
@@ -953,10 +952,6 @@ void Huff_offsetTransmit( huff_t *huff, int ch, byte *fout, int *off
void Huff_putBit( int bit, byte *fout, int *offset );
int Huff_getBit( byte *fout, int *offset );

// don't use if you don't know what you're doing.
int Huff_getBloc();
void Huff_setBloc( int _bloc );

extern huffman_t clientHuffTables;

#define SV_ENCODE_START 4

0 comments on commit 0bc48c1

Please sign in to comment.