diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-04-03 16:03:08 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-04-04 09:52:33 +0200 |
commit | a4e573924e497ca4069e8f5de9506bb9580073b8 (patch) | |
tree | 5c8b04d0286579c32d9b91ae1ec05535f309d3f3 /SpiceXPI | |
parent | f1f61c2ed6551848a745a0bd6559e6d7d625863f (diff) |
Remove unused SendWStr()
Diffstat (limited to 'SpiceXPI')
-rw-r--r-- | SpiceXPI/src/plugin/plugin.cpp | 15 | ||||
-rw-r--r-- | SpiceXPI/src/plugin/plugin.h | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp index 561015e..8acde24 100644 --- a/SpiceXPI/src/plugin/plugin.cpp +++ b/SpiceXPI/src/plugin/plugin.cpp @@ -572,21 +572,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 b57e615..38a8c82 100644 --- a/SpiceXPI/src/plugin/plugin.h +++ b/SpiceXPI/src/plugin/plugin.h @@ -177,7 +177,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); |