summaryrefslogtreecommitdiffstats
path: root/server/red_channel.c
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-05-24 11:00:33 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-05-24 11:00:33 +0300
commitc59b2884a2f7fc953fdb263085830b65e8bdcaef (patch)
tree78c6302afb2c6cd9ae111ccb113583a691a2d159 /server/red_channel.c
parent038ae54b1c4c43a63d346bdfe2db52b48f20a22e (diff)
downloadspice-c59b2884a2f7fc953fdb263085830b65e8bdcaef.tar.gz
spice-c59b2884a2f7fc953fdb263085830b65e8bdcaef.tar.xz
spice-c59b2884a2f7fc953fdb263085830b65e8bdcaef.zip
server/red_channel: remove red_channel_client_item_being_sent
The above routine was risky, since red_channel_client_init_send_data can also be called with item==NULL. Thus, not all pipe items can be tracked. The one call that was made for this routine was not necessary.
Diffstat (limited to 'server/red_channel.c')
-rw-r--r--server/red_channel.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/server/red_channel.c b/server/red_channel.c
index a7ef934e..83a9f372 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -1374,25 +1374,6 @@ int red_channel_get_first_socket(RedChannel *channel)
RedChannelClient, channel_link)->stream->socket;
}
-int red_channel_client_item_being_sent(RedChannelClient *rcc, PipeItem *item)
-{
- return rcc->send_data.item == item;
-}
-
-int red_channel_item_being_sent(RedChannel *channel, PipeItem *item)
-{
- RingItem *link;
- RedChannelClient *rcc;
-
- RING_FOREACH(link, &channel->clients) {
- rcc = SPICE_CONTAINEROF(link, RedChannelClient, channel_link);
- if (rcc->send_data.item == item) {
- return TRUE;
- }
- }
- return FALSE;
-}
-
int red_channel_no_item_being_sent(RedChannel *channel)
{
RingItem *link;