[gtk] gdk: Remove unnecessary assignments



commit 03a85ff2a0d1294d315f5a4302301e626127e709
Author: Benjamin Otte <otte redhat com>
Date:   Sat May 5 20:36:12 2018 +0200

    gdk: Remove unnecessary assignments
    
    The variable is never read again.

 gdk/gdkpipeiostream.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/gdk/gdkpipeiostream.c b/gdk/gdkpipeiostream.c
index c7e0b6c32e..f0477d5dff 100644
--- a/gdk/gdkpipeiostream.c
+++ b/gdk/gdkpipeiostream.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]