aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--data/lib/util.js4
-rw-r--r--lib/libbugzilla.js4
-rw-r--r--lib/main.js6
-rw-r--r--tests/test-pageMod.js3
4 files changed, 0 insertions, 17 deletions
diff --git a/data/lib/util.js b/data/lib/util.js
index b128d48..35150d5 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -392,10 +392,6 @@ function Message(cmd, data) {
this.data = data;
}
-function log(msg) {
- self.postMessage(new Message("LogMessage", msg));
-}
-
var NotLoggedinException = function NotLoggedinException (message) {
this.message = message;
this.name = "NotLoggedinException";
diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js
index 4858a96..d366ada 100644
--- a/lib/libbugzilla.js
+++ b/lib/libbugzilla.js
@@ -32,10 +32,6 @@ function Message(cmd, data) {
this.data = data;
}
-function log(msg) {
- postMessage(new Message("LogMessage", msg));
-}
-
function debug(str) {
if (debugOption) {
console.log(str);
diff --git a/lib/main.js b/lib/main.js
index 3ca736e..643ef36 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -39,12 +39,6 @@ function skipThisPage(doc) {
var messageHandler = exports.messageHandler = function messageHandler(
worker, msg) {
switch (msg.cmd) {
- case "LogMessage":
- console.log(msg.data);
- break;
- case "ExecCmd":
- libbz.executeCommand(msg.data);
- break;
case "AddLogRecord":
logger.addLogRecord(msg.data);
break;
diff --git a/tests/test-pageMod.js b/tests/test-pageMod.js
index 02b7faf..3f7e698 100644
--- a/tests/test-pageMod.js
+++ b/tests/test-pageMod.js
@@ -63,9 +63,6 @@ var ensureSimplePageLoad = function(test) {
onAttach : function onAttach(worker) {
worker.on('message', function(msg) {
switch (msg.cmd) {
- case "LogMessage":
- log(msg.data);
- break;
case "CallBack":
worker
.postMessage(new utilMod.Message("Main", null));