diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-09-06 01:15:20 -0500 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-09-06 01:15:20 -0500 |
| commit | cc9e88184404085af44cf5c63e25bf9890ead895 (patch) | |
| tree | 7da58783781329d06924a1b7f8bba9d13ba2cef3 /Source/Core/VideoCommon/TextureDecoder_x64.cpp | |
| parent | a831121683598903c81577ac0aa70e73b48baf24 (diff) | |
| parent | debe3999b556a438b4b1a81e74e258a057858260 (diff) | |
Merge pull request #987 from rohit-n/more-dead-code
Remove more dead and redundant code.
Diffstat (limited to 'Source/Core/VideoCommon/TextureDecoder_x64.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureDecoder_x64.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Source/Core/VideoCommon/TextureDecoder_x64.cpp b/Source/Core/VideoCommon/TextureDecoder_x64.cpp index 50458016fa..6589ef7571 100644 --- a/Source/Core/VideoCommon/TextureDecoder_x64.cpp +++ b/Source/Core/VideoCommon/TextureDecoder_x64.cpp @@ -186,30 +186,18 @@ static inline void DecodeBytes_IA4(u32 *dst, const u8 *src) static inline void DecodeBytes_RGB5A3(u32 *dst, const u16 *src) { -#if 0 - for (int x = 0; x < 4; x++) - dst[x] = DecodePixel_RGB5A3(Common::swap16(src[x])); -#else dst[0] = DecodePixel_RGB5A3(Common::swap16(src[0])); dst[1] = DecodePixel_RGB5A3(Common::swap16(src[1])); dst[2] = DecodePixel_RGB5A3(Common::swap16(src[2])); dst[3] = DecodePixel_RGB5A3(Common::swap16(src[3])); -#endif } static inline void DecodeBytes_RGBA8(u32 *dst, const u16 *src, const u16 * src2) { -#if 0 - for (int x = 0; x < 4; x++) - { - dst[x] = ((src[x] & 0xFF) << 24) | ((src[x] & 0xFF00)>>8) | (src2[x] << 8); - } -#else dst[0] = ((src[0] & 0xFF) << 24) | ((src[0] & 0xFF00)>>8) | (src2[0] << 8); dst[1] = ((src[1] & 0xFF) << 24) | ((src[1] & 0xFF00)>>8) | (src2[1] << 8); dst[2] = ((src[2] & 0xFF) << 24) | ((src[2] & 0xFF00)>>8) | (src2[2] << 8); dst[3] = ((src[3] & 0xFF) << 24) | ((src[3] & 0xFF00)>>8) | (src2[3] << 8); -#endif } #ifdef CHECK |
