Bug 1274271 - Remove unused function applyNamedArgs; r=automatedtester a=test-only
authorAndreas Tolfsen <ato@mozilla.com>
Thu, 19 May 2016 14:53:00 +0100
changeset 335235 a4ff8afa88829ecb0410cbd51b34028fd738c8c8
parent 335234 023770b1ecf103178726e4b69e5e88dead4ceb44
child 335236 52984371a7f03c909798473a34832fa16e7e2106
push id1146
push userCallek@gmail.com
push dateMon, 25 Jul 2016 16:35:44 +0000
treeherdermozilla-release@a55778f9cd5a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester, test-only
bugs1274271
milestone48.0a2
Bug 1274271 - Remove unused function applyNamedArgs; r=automatedtester a=test-only MozReview-Commit-ID: DU5xHDLL4Ww
testing/marionette/element.js
--- a/testing/marionette/element.js
+++ b/testing/marionette/element.js
@@ -284,45 +284,16 @@ ElementManager.prototype = {
             converted[prop] = this.convertWrappedArguments(args[prop], container);
           }
         }
         break;
     }
     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.
    *
    * If |timeout| is above 0, an implicit search technique is used.
    * This will wait for the duration of |timeout| for the element
    * to appear in the DOM.
    *