Skip to contentSkip to conversation

vnc: tight: remove unused variable

PATCH Applied Serge Ziryukin 2 participants 2 messages Aug 28, 2010 – Sep 4, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vnc: tight: remove unused variable

---
 ui/vnc-enc-tight.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
ui/vnc-enc-tight.c +0 -2
index c4c9c3b..6ee10f9 100644
@@ -1351,7 +1351,6 @@ static int send_png_rect(VncState *vs, int x, int y, int w, int h,
     png_structp png_ptr;
     png_infop info_ptr;
     png_colorp png_palette = NULL;
-    size_t offset;
     int level = tight_png_conf[vs->tight.compression].png_zlib_level;
     int filters = tight_png_conf[vs->tight.compression].png_filters;
     uint8_t *buf;
@@ -1396,7 +1395,6 @@ static int send_png_rect(VncState *vs, int x, int y, int w, int h,
 
         png_set_PLTE(png_ptr, info_ptr, png_palette, palette_size(palette));
 
-        offset = vs->tight.tight.offset;
         if (vs->clientds.pf.bytes_per_pixel == 4) {
             tight_encode_indexed_rect32(vs->tight.tight.buffer, w * h, palette);
         } else {
Signature · 1 line
1.7.2.2
Applied
#1 lore raw

Thanks, applied.

Quoted 30 lines · Serge Ziryukin

---
 ui/vnc-enc-tight.c |    2 --

 1 files changed, 0 insertions(+), 2 deletions(-)
ui/vnc-enc-tight.c +0 -3
index c4c9c3b..6ee10f9 100644
@@ -1351,7 +1351,6 @@ static int send_png_rect(VncState *vs, int x, int y, int w, int h,
     png_structp png_ptr;
     png_infop info_ptr;
     png_colorp png_palette = NULL;
-    size_t offset;
     int level = tight_png_conf[vs->tight.compression].png_zlib_level;
     int filters = tight_png_conf[vs->tight.compression].png_filters;
     uint8_t *buf;
@@ -1396,7 +1395,6 @@ static int send_png_rect(VncState *vs, int x, int y, int w, int h,
 
         png_set_PLTE(png_ptr, info_ptr, png_palette, palette_size(palette));
 
-        offset = vs->tight.tight.offset;
         if (vs->clientds.pf.bytes_per_pixel == 4) {
             tight_encode_indexed_rect32(vs->tight.tight.buffer, w * h, palette);
         } else {
--

1.7.2.2