projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f569717
)
gdk: Remove unnecessary assignments
author
Benjamin Otte
<otte@redhat.com>
Sat, 5 May 2018 18:36:12 +0000
(20:36 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 6 May 2018 00:10:20 +0000
(
02:10
+0200)
The variable is never read again.
gdk/gdkpipeiostream.c
patch
|
blob
|
history
diff --git
a/gdk/gdkpipeiostream.c
b/gdk/gdkpipeiostream.c
index c7e0b6c32e237c6a2925908240f705e7683080dd..f0477d5dff9a26428ab74e4ee3c1848bf5a60369 100644
(file)
--- 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)