[Spice-commits] src/decode-glz.c

Christophe Fergau teuf at kemper.freedesktop.org
Wed May 17 09:22:24 UTC 2017


 src/decode-glz.c |   21 ---------------------
 1 file changed, 21 deletions(-)

New commits:
commit 5bba35f2fd042153868ce7ecc971c601290d4683
Author: Christophe Fergeau <cfergeau at redhat.com>
Date:   Tue May 16 17:08:28 2017 +0200

    glz: Remove unused DECODE_TO_SAME array
    
    This also removes the generation of unneeded _decode methods once this
    array is removed (this causes some warnings otherwise).
    
    DECODE_TO_SAME was used in the old client, but was never used when this
    code was moved over to spice-gtk.
    
    Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/src/decode-glz.c b/src/decode-glz.c
index d5b72ab..2776539 100644
--- a/src/decode-glz.c
+++ b/src/decode-glz.c
@@ -238,9 +238,6 @@ typedef uint16_t rgb16_pixel_t;
 #undef ATTR_PACKED
 
 #define LZ_PLT
-#include "decode-glz-tmpl.c"
-
-#define LZ_PLT
 #define PLT8
 #define TO_RGB32
 #include "decode-glz-tmpl.c"
@@ -267,14 +264,9 @@ typedef uint16_t rgb16_pixel_t;
 
 
 #define LZ_RGB16
-#include "decode-glz-tmpl.c"
-#define LZ_RGB16
 #define TO_RGB32
 #include "decode-glz-tmpl.c"
 
-#define LZ_RGB24
-#include "decode-glz-tmpl.c"
-
 #define LZ_RGB32
 #include "decode-glz-tmpl.c"
 
@@ -302,19 +294,6 @@ const decode_function DECODE_TO_RGB32[] = {
     glz_rgb32_decode
 };
 
-const decode_function DECODE_TO_SAME[] = {
-    NULL,
-    glz_plt_decode,
-    glz_plt_decode,
-    glz_plt_decode,
-    glz_plt_decode,
-    glz_plt_decode,
-    glz_rgb16_decode,
-    glz_rgb24_decode,
-    glz_rgb32_decode,
-    glz_rgb32_decode
-};
-
 static uint32_t decode_32(GlibGlzDecoder *d)
 {
     uint32_t word = 0;


More information about the Spice-commits mailing list