diff --git a/src/worker.js b/src/worker.js index d76e761a1e2bd5c824dc7b6deaed802c85c90596..32db2aa3d8c046b7fd14f6b6fb852d18b7b3440e 100644 --- a/src/worker.js +++ b/src/worker.js @@ -4,17 +4,9 @@ const fs = require("fs"), noop = require(path.join(__dirname, "noop.js")), events = /^(error|message)$/; -function trim (arg) { - return arg.replace(/^(\s+|\t+|\n+)|(\s+|\t+|\n+)$/g, ""); -} - -function explode (arg) { - return trim(arg).split(new RegExp("\\s*,\\s*")); -} - function toFunction (arg) { var __worker_evaluated_function_ = null; - eval('__worker_evaluated_function_ = (' + arg + ')') + eval("__worker_evaluated_function_ = (" + arg + ")"); // eslint-disable-line no-eval return __worker_evaluated_function_; }