From 0824f63ac1f0ae5b2719129b40b5ad915ec214a0 Mon Sep 17 00:00:00 2001 From: Andreas Tolfsen Date: Thu, 19 May 2016 14:53:00 +0100 Subject: [PATCH] Bug 1274271 - Remove unused function applyNamedArgs; r=automatedtester MozReview-Commit-ID: DU5xHDLL4Ww --HG-- extra : rebase_source : 59949b4c99e007231bf68f94bd1b513c7d43376b --- testing/marionette/element.js | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/testing/marionette/element.js b/testing/marionette/element.js index ded2982ffb76..bc904ae746b4 100644 --- a/testing/marionette/element.js +++ b/testing/marionette/element.js @@ -289,35 +289,6 @@ ElementManager.prototype = { return converted; }, - /* - * Execute* helpers - */ - - /** - * Return an object with any namedArgs applied to it. Used - * to let clients use given names when refering to arguments - * in execute calls, instead of using the arguments list. - * - * @param object args - * list of arguments being passed in - * - * @return object - * If '__marionetteArgs' is in args, then - * it will return an object with these arguments - * as its members. - */ - applyNamedArgs: function EM_applyNamedArgs(args) { - let namedArgs = {}; - args.forEach(function(arg) { - if (arg && typeof(arg['__marionetteArgs']) === 'object') { - for (let prop in arg['__marionetteArgs']) { - namedArgs[prop] = arg['__marionetteArgs'][prop]; - } - } - }); - return namedArgs; - }, - /** * Find a single element or a collection of elements starting at the * document root or a given node.