Bug 1529247 - remove unused cachedScript property; r=ochameau
authoryulia <ystartsev@mozilla.com>
Tue, 12 Mar 2019 14:02:05 +0000
changeset 521556 4cb9ab350bcb
parent 521555 aa554fe5d8fe
child 521557 54058a24dab1
push id10867
push userdvarga@mozilla.com
push dateThu, 14 Mar 2019 15:20:45 +0000
treeherdermozilla-beta@abad13547875 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1529247
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1529247 - remove unused cachedScript property; r=ochameau Differential Revision: https://phabricator.services.mozilla.com/D21672
devtools/shared/client/thread-client.js
--- a/devtools/shared/client/thread-client.js
+++ b/devtools/shared/client/thread-client.js
@@ -25,17 +25,16 @@ const noop = () => {};
  *
  * @param client DebuggerClient
  * @param actor string
  *        The actor ID for this thread.
  */
 function ThreadClient(client, actor) {
   this.client = client;
   this._actor = actor;
-  this._scriptCache = {};
   this._pauseGrips = {};
   this._threadGrips = {};
   this.request = this.client.request;
 }
 
 ThreadClient.prototype = {
   _state: "paused",
   get state() {
@@ -362,27 +361,16 @@ ThreadClient.prototype = {
    * @param onResponse Function
    *        Called with the thread's response.
    */
   getSources: DebuggerClient.requester({
     type: "sources",
   }),
 
   /**
-   * Clear the thread's source script cache. A scriptscleared event
-   * will be sent.
-   */
-  _clearScripts: function() {
-    if (Object.keys(this._scriptCache).length > 0) {
-      this._scriptCache = {};
-      this.emit("scriptscleared");
-    }
-  },
-
-  /**
    * Request frames from the callstack for the current thread.
    *
    * @param start integer
    *        The number of the youngest stack frame to return (the youngest
    *        frame is 0).
    * @param count integer
    *        The maximum number of frames to return, or null to return all
    *        frames.