Remove unused variables.

TEST=compiles, runs
BUG=none

Change-Id: I828edb745b182df49a7a8093047caca7ba5203ca
Reviewed-on: https://gerrit.chromium.org/gerrit/36275
Tested-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Ready: Stéphane Marchesin <marcheu@chromium.org>
diff --git a/src/ply-frame-buffer.c b/src/ply-frame-buffer.c
index 8a3af61..7ba78b2 100644
--- a/src/ply-frame-buffer.c
+++ b/src/ply-frame-buffer.c
@@ -125,7 +125,6 @@
                                      ply_frame_buffer_area_t *area_to_flush) {
   unsigned long row, column;
   char *row_buffer;
-  size_t bytes_per_row;
   unsigned long x1, y1, x2, y2;
 
   x1 = area_to_flush->x;
@@ -133,7 +132,6 @@
   x2 = x1 + area_to_flush->width;
   y2 = y1 + area_to_flush->height;
 
-  bytes_per_row = area_to_flush->width * buffer->bytes_per_pixel;
   row_buffer = malloc(buffer->row_stride * buffer->bytes_per_pixel);
   for (row = y1; row < y2; row++) {
     unsigned long offset;
@@ -164,12 +162,11 @@
 
 static void flush_area_to_xrgb32_device(
     ply_frame_buffer_t *buffer, ply_frame_buffer_area_t *area_to_flush) {
-  unsigned long x1, y1, x2, y2, y;
+  unsigned long x1, y1, y2, y;
   char *dst, *src;
 
   x1 = area_to_flush->x;
   y1 = area_to_flush->y;
-  x2 = x1 + area_to_flush->width;
   y2 = y1 + area_to_flush->height;
 
   dst = &buffer->map_address[(y1 * buffer->row_stride + x1) * 4];