Bug 1325409 - shield-recipe-client: Remove unnecessary cleanup r=me
See also: https://github.com/mozilla/normandy/pull/443/files
MozReview-Commit-ID: 6LdFs4YdfMs
--- a/browser/extensions/shield-recipe-client/lib/Heartbeat.jsm
+++ b/browser/extensions/shield-recipe-client/lib/Heartbeat.jsm
@@ -326,17 +326,16 @@ this.Heartbeat = class {
}
handleWindowClosed() {
this.maybeNotifyHeartbeat("WindowClosed");
}
close() {
this.notificationBox.removeNotification(this.notice);
- this.cleanup();
}
cleanup() {
// Kill the timers which might call things after we've cleaned up:
this.endTimerIfPresent("surveyEndTimer");
this.endTimerIfPresent("engagementCloseTimer");
this.sandboxManager.removeHold("heartbeat");