aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-06-08 18:56:53 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-06-08 18:56:53 +0200
commite6c92c1ff7c2b465afd6076beabb692d9c3e4825 (patch)
treeb692475f1f4f524162484119a94d296aba9d038e
parent7e426ac5faeea1b06de1ae2a024feaddb7f00531 (diff)
downloadbugzilla-triage-e6c92c1ff7c2b465afd6076beabb692d9c3e4825.tar.gz
Cleanup before re-posting to https://bugzilla.mozilla.org/show_bug.cgi?id=570741
-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