Skip to content
This repository was archived by the owner on Oct 31, 2022. It is now read-only.

Commit 5d54afb

Browse files
committed
Remove some unused helper functions from YCoCgDXT.cpp
1 parent 1f0609a commit 5d54afb

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

source/YCoCgDXT.cpp

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,20 +154,6 @@ static ALWAYS_INLINE void EmitUShort( unsigned short s, byte **outData ){
154154
*outData += 2;
155155
}
156156

157-
static ALWAYS_INLINE void EmitWord( word s, byte **outData ) {
158-
(*outData)[0] = ( s >> 0 ) & 255;
159-
(*outData)[1] = ( s >> 8 ) & 255;
160-
*outData += 2;
161-
}
162-
163-
static ALWAYS_INLINE void EmitDoubleWord( dword i, byte **outData ) {
164-
(*outData)[0] = ( i >> 0 ) & 255;
165-
(*outData)[1] = ( i >> 8 ) & 255;
166-
(*outData)[2] = ( i >> 16 ) & 255;
167-
(*outData)[3] = ( i >> 24 ) & 255;
168-
(*outData) += 4;
169-
}
170-
171157
static ALWAYS_INLINE void ExtractBlock( const byte *inPtr, const int stride, byte *colorBlock ) {
172158
for ( int j = 0; j < 4; j++ ) {
173159
memcpy( &colorBlock[j*4*4], inPtr, 4*4 );
@@ -568,11 +554,13 @@ static ALWAYS_INLINE void Convert565ToColor( const unsigned short value , byte *
568554
pOutColor[2] = c << 3; // was a 5 bit so scale back up
569555
}
570556

557+
#ifndef EA_SYSTEM_LITTLE_ENDIAN
571558
// Flip around the 2 bytes in a short
572559
static ALWAYS_INLINE short ShortFlipBytes( short raw )
573560
{
574561
return ((raw >> 8) & 0xff) | (raw << 8);
575562
}
563+
#endif
576564

577565
static void RestoreChromaBlock( const void * pSource, byte *colorBlock)
578566
{

0 commit comments

Comments
 (0)