[Spice-devel] [spice-xpi 3/4] Remove unused SendWStr()
Christophe Fergeau
cfergeau at redhat.com
Tue Apr 3 07:38:06 PDT 2012
---
SpiceXPI/src/plugin/plugin.cpp | 15 ---------------
SpiceXPI/src/plugin/plugin.h | 1 -
2 files changed, 16 deletions(-)
diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp
index 008688a..cef4f58 100644
--- a/SpiceXPI/src/plugin/plugin.cpp
+++ b/SpiceXPI/src/plugin/plugin.cpp
@@ -584,21 +584,6 @@ void nsPluginInstance::SendStr(uint32_t id, std::string str)
free(msg);
}
-void nsPluginInstance::SendWStr(uint32_t id, const wchar_t *str)
-{
- size_t len = wcslen(str);
- if (!len)
- return;
-
- size_t size = sizeof(ControllerData) + (len + 1) * sizeof(wchar_t);
- ControllerData *msg = static_cast<ControllerData *>(malloc(size));
- msg->base.id = id;
- msg->base.size = size;
- wcscpy(reinterpret_cast<wchar_t *>(msg->data), str);
- WriteToPipe(msg, size);
- free(msg);
-}
-
void nsPluginInstance::Connect()
{
std::string socket_file(m_tmp_dir);
diff --git a/SpiceXPI/src/plugin/plugin.h b/SpiceXPI/src/plugin/plugin.h
index 48e3554..d3f3c91 100644
--- a/SpiceXPI/src/plugin/plugin.h
+++ b/SpiceXPI/src/plugin/plugin.h
@@ -181,7 +181,6 @@ private:
void SendMsg(uint32_t id);
void SendValue(uint32_t id, uint32_t value);
void SendStr(uint32_t id, std::string str);
- void SendWStr(uint32_t id, const wchar_t *str);
void SendBool(uint32_t id, bool value);
void CallOnDisconnected(int code);
--
1.7.9.3
More information about the Spice-devel
mailing list