提交 6709479a 编写于 作者: N Nikolay Shirokovskiy 提交者: Michal Privoznik

rpc: remove unused virNetClientSendNoReply

Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 2fd435b7
......@@ -38,7 +38,6 @@ virNetClientRegisterKeepAlive;
virNetClientRemoteAddrStringSASL;
virNetClientRemoveStream;
virNetClientSendNonBlock;
virNetClientSendNoReply;
virNetClientSendStream;
virNetClientSendWithReply;
virNetClientSetCloseCallback;
......
......@@ -2159,28 +2159,6 @@ int virNetClientSendWithReply(virNetClientPtr client,
}
/*
* @msg: a message allocated on heap or stack
*
* Send a message synchronously, without any reply
*
* The caller is responsible for free'ing @msg if it was allocated
* on the heap
*
* Returns 0 on success, -1 on failure
*/
int virNetClientSendNoReply(virNetClientPtr client,
virNetMessagePtr msg)
{
int ret;
virObjectLock(client);
ret = virNetClientSendInternal(client, msg, false, false);
virObjectUnlock(client);
if (ret < 0)
return -1;
return 0;
}
/*
* @msg: a message allocated on the heap.
*
......
......@@ -109,9 +109,6 @@ void virNetClientRemoveStream(virNetClientPtr client,
int virNetClientSendWithReply(virNetClientPtr client,
virNetMessagePtr msg);
int virNetClientSendNoReply(virNetClientPtr client,
virNetMessagePtr msg);
int virNetClientSendNonBlock(virNetClientPtr client,
virNetMessagePtr msg);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册