[gtk] gdk: Remove unnecessary assignments
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] gdk: Remove unnecessary assignments
- Date: Sun, 6 May 2018 00:16:08 +0000 (UTC)
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]