gdk: Remove unnecessary assignments
authorBenjamin Otte <otte@redhat.com>
Sat, 5 May 2018 18:36:12 +0000 (20:36 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 6 May 2018 00:10:20 +0000 (02:10 +0200)
The variable is never read again.

gdk/gdkpipeiostream.c

index c7e0b6c32e237c6a2925908240f705e7683080dd..f0477d5dff9a26428ab74e4ee3c1848bf5a60369 100644 (file)
@@ -172,7 +172,6 @@ gdk_pipe_input_stream_read (GInputStream  *stream,
       amount = MIN (count, pipe->size);
       
       memcpy (buffer, pipe->buffer, amount);
-      count -= amount;
       pipe->size -= amount;
 
       if (pipe->size == 0)
@@ -308,7 +307,6 @@ gdk_pipe_output_stream_write (GOutputStream  *stream,
       amount = MIN (count, pipe->size);
       
       memcpy (pipe->buffer, buffer, amount);
-      count -= amount;
       pipe->size -= amount;
 
       if (pipe->size == 0)