[Spice-devel] [PATCH 5/9] client/glz_decoder.cpp: gcc 4.6.0 unused fixes
Alon Levy
alevy at redhat.com
Tue Jan 25 07:34:01 PST 2011
---
client/glz_decoder.cpp | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/client/glz_decoder.cpp b/client/glz_decoder.cpp
index a71b514..c5ccb95 100644
--- a/client/glz_decoder.cpp
+++ b/client/glz_decoder.cpp
@@ -234,7 +234,6 @@ const decode_function DECODE_TO_SAME[] = {
void GlzDecoder::decode(uint8_t *data, SpicePalette *palette, void *opaque_usr_info)
{
- int out_size;
DecodedImageWinId image_window_id;
GlzDecodedImage *decoded_image;
size_t n_in_bytes_decoded;
@@ -247,7 +246,6 @@ void GlzDecoder::decode(uint8_t *data, SpicePalette *palette, void *opaque_usr_i
decode_header();
#ifdef GLZ_DECODE_TO_RGB32
- out_size = _image.gross_pixels << 2;
bytes_per_pixel = 4;
if (_image.type == LZ_IMAGE_TYPE_RGBA) {
@@ -259,9 +257,6 @@ void GlzDecoder::decode(uint8_t *data, SpicePalette *palette, void *opaque_usr_i
#else
if (IS_IMAGE_TYPE_PLT[_image.type]) {
GLZ_ASSERT(_debug_calls, !(_image.gross_pixels % PLT_PIXELS_PER_BYTE[_image.type]));
- out_size = _image.gross_pixels / PLT_PIXELS_PER_BYTE[_image.type];
- } else {
- out_size = _image.gross_pixels * RGB_BYTES_PER_PIXEL[_image.type];
}
bytes_per_pixel = RGB_BYTES_PER_PIXEL[_image.type];
decoded_type = _image.type;
--
1.7.3.5
More information about the Spice-devel
mailing list