Bug 1238173 - Remove getScriptsBySourceActor from ScriptStore;r=jlongster draft
authorBrian Grinstead <bgrinstead@mozilla.com>
Fri, 08 Jan 2016 16:11:04 -0800
changeset 320194 6a1b660bfe1aad1ad707e2763b4f47285e0aef61
parent 320169 895e44661a5fcfd826d95c560990ecea25228b25
child 512705 8e5fafa06c959508f16faa2dd976d68efcab47f1
push id9153
push userbgrinstead@mozilla.com
push dateSat, 09 Jan 2016 00:11:12 +0000
reviewersjlongster
bugs1238173
milestone46.0a1
Bug 1238173 - Remove getScriptsBySourceActor from ScriptStore;r=jlongster
devtools/server/actors/utils/ScriptStore.js
--- a/devtools/server/actors/utils/ScriptStore.js
+++ b/devtools/server/actors/utils/ScriptStore.js
@@ -74,22 +74,16 @@ ScriptStore.prototype = {
    *
    * NB: The ScriptStore retains ownership of the returned array, and the
    * ScriptStore's consumers MUST NOT MODIFY its contents!
    */
   getAllScripts() {
     return this._scripts.items;
   },
 
-  getScriptsBySourceActor(sourceActor) {
-    return sourceActor.source ?
-           this.getScriptsBySource(sourceActor.source) :
-           this.getScriptsByURL(sourceActor._originalUrl);
-  },
-
   getScriptsBySourceActorAndLine(sourceActor, line) {
     return sourceActor.source ?
            this.getScriptsBySourceAndLine(sourceActor.source, line) :
            this.getScriptsByURLAndLine(sourceActor._originalUrl, line);
   },
 
   /**
    * Get all scripts produced from the given source.