GUACAMOLE-495: Remove setClipboard() function of Guacamole.Client, deprecated since 0.9.1 (05a7c87).
Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/57d81544 Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/57d81544 Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/57d81544 Branch: refs/heads/master Commit: 57d81544ea46fc4f7e68836d146ca60022c430fa Parents: 17f6862 Author: Michael Jumper <mjum...@apache.org> Authored: Thu Feb 1 22:32:36 2018 -0800 Committer: Michael Jumper <mjum...@apache.org> Committed: Thu Feb 1 22:32:36 2018 -0800 ---------------------------------------------------------------------- .../src/main/webapp/modules/Client.js | 25 -------------------- 1 file changed, 25 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/57d81544/guacamole-common-js/src/main/webapp/modules/Client.js ---------------------------------------------------------------------- diff --git a/guacamole-common-js/src/main/webapp/modules/Client.js b/guacamole-common-js/src/main/webapp/modules/Client.js index 006a262..85e9346 100644 --- a/guacamole-common-js/src/main/webapp/modules/Client.js +++ b/guacamole-common-js/src/main/webapp/modules/Client.js @@ -351,31 +351,6 @@ Guacamole.Client = function(tunnel) { }; /** - * Sets the clipboard of the remote client to the given text data. - * - * @deprecated Use createClipboardStream() instead. - * @param {String} data The data to send as the clipboard contents. - */ - this.setClipboard = function(data) { - - // Do not send requests if not connected - if (!isConnected()) - return; - - // Open stream - var stream = guac_client.createClipboardStream("text/plain"); - var writer = new Guacamole.StringWriter(stream); - - // Send text chunks - for (var i=0; i<data.length; i += 4096) - writer.sendText(data.substring(i, i+4096)); - - // Close stream - writer.sendEnd(); - - }; - - /** * Allocates an available stream index and creates a new * Guacamole.OutputStream using that index, associating the resulting * stream with this Guacamole.Client. Note that this stream will not yet