aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/clipboard.js11
-rw-r--r--tests/test-clipboard.js2
2 files changed, 2 insertions, 11 deletions
diff --git a/lib/clipboard.js b/lib/clipboard.js
index ea14903..0051a55 100644
--- a/lib/clipboard.js
+++ b/lib/clipboard.js
@@ -6,12 +6,8 @@
* @return string with the content of the clipboard or "" if empty.
* originally from
* https://developer.mozilla.org/en/Using_the_Clipboard
- *
+ * https://wiki.mozilla.org/Labs/Jetpack/JEP/10
*/
-// TODO to-be-replaced by
-// var contents = jetpack.clipboard.get();
-// http://hsivonen.iki.fi/kesakoodi/clipboard/
-// https://wiki.mozilla.org/Labs/Jetpack/JEP/10
function getClipboard() {
var clip = Cc["@mozilla.org/widget/clipboard;1"].
@@ -103,11 +99,6 @@ var setMethod = exports.set = function setMethod(content, flavor) {
return true;
};
-function createSupportsWString() {
- return Cc["@mozilla.org/supports-wstring;1"].
- createInstance(Ci.nsISupportsWString);
-}
-
var flavorsMethod = exports.getCurrentFlavors = function flavorsMethod(test) {
// currently the only possible flavors in Jetpack-prototype are "plain" and
// "html", i.e., "text/plain" (or text/unicode?) and "text/html" (or
diff --git a/tests/test-clipboard.js b/tests/test-clipboard.js
index 07ff026..513eaf8 100644
--- a/tests/test-clipboard.js
+++ b/tests/test-clipboard.js
@@ -49,4 +49,4 @@ exports.ensureClipboardGetFlavors = function ensureClipboardGetFlavors(test) {
"checking getFlavors method");
};
-// TODO: some weird mimeType which is not supported
+// TODO: test for some weird mimeType which is not supported \ No newline at end of file