summaryrefslogtreecommitdiffstats
path: root/devtools/client/memory/actions
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/memory/actions')
-rw-r--r--devtools/client/memory/actions/census-display.js2
-rw-r--r--devtools/client/memory/actions/filter.js2
-rw-r--r--devtools/client/memory/actions/io.js6
-rw-r--r--devtools/client/memory/actions/label-display.js2
-rw-r--r--devtools/client/memory/actions/snapshot.js4
-rw-r--r--devtools/client/memory/actions/tree-map-display.js2
-rw-r--r--devtools/client/memory/actions/view.js4
7 files changed, 11 insertions, 11 deletions
diff --git a/devtools/client/memory/actions/census-display.js b/devtools/client/memory/actions/census-display.js
index d266fe04a5..9abd16d99b 100644
--- a/devtools/client/memory/actions/census-display.js
+++ b/devtools/client/memory/actions/census-display.js
@@ -10,7 +10,7 @@ const {
} = require("resource://devtools/client/memory/actions/refresh.js");
exports.setCensusDisplayAndRefresh = function (heapWorker, display) {
- return async function ({ dispatch, getState }) {
+ return async function ({ dispatch }) {
dispatch(setCensusDisplay(display));
await dispatch(refresh(heapWorker));
};
diff --git a/devtools/client/memory/actions/filter.js b/devtools/client/memory/actions/filter.js
index 1bc9fd35db..7f5295872d 100644
--- a/devtools/client/memory/actions/filter.js
+++ b/devtools/client/memory/actions/filter.js
@@ -26,7 +26,7 @@ const debouncedRefreshDispatcher = debounce(
);
exports.setFilterStringAndRefresh = function (filterString, heapWorker) {
- return ({ dispatch, getState }) => {
+ return ({ dispatch }) => {
dispatch(setFilterString(filterString));
debouncedRefreshDispatcher(dispatch, heapWorker);
};
diff --git a/devtools/client/memory/actions/io.js b/devtools/client/memory/actions/io.js
index c811478df5..bedd5d8bfc 100644
--- a/devtools/client/memory/actions/io.js
+++ b/devtools/client/memory/actions/io.js
@@ -25,7 +25,7 @@ const {
const VALID_EXPORT_STATES = [states.SAVED, states.READ];
exports.pickFileAndExportSnapshot = function (snapshot) {
- return async function ({ dispatch, getState }) {
+ return async function ({ dispatch }) {
const outputFile = await openFilePicker({
title: L10N.getFormatStr("snapshot.io.save.window"),
defaultName: PathUtils.filename(snapshot.path),
@@ -42,7 +42,7 @@ exports.pickFileAndExportSnapshot = function (snapshot) {
};
const exportSnapshot = (exports.exportSnapshot = function (snapshot, dest) {
- return async function ({ dispatch, getState }) {
+ return async function ({ dispatch }) {
dispatch({ type: actions.EXPORT_SNAPSHOT_START, snapshot });
assert(
@@ -62,7 +62,7 @@ const exportSnapshot = (exports.exportSnapshot = function (snapshot, dest) {
});
exports.pickFileAndImportSnapshotAndCensus = function (heapWorker) {
- return async function ({ dispatch, getState }) {
+ return async function ({ dispatch }) {
const input = await openFilePicker({
title: L10N.getFormatStr("snapshot.io.import.window"),
filters: [[L10N.getFormatStr("snapshot.io.filter"), "*.fxsnapshot"]],
diff --git a/devtools/client/memory/actions/label-display.js b/devtools/client/memory/actions/label-display.js
index c8a6db35ec..cd90fcff3b 100644
--- a/devtools/client/memory/actions/label-display.js
+++ b/devtools/client/memory/actions/label-display.js
@@ -14,7 +14,7 @@ const {
* current data.
*/
exports.setLabelDisplayAndRefresh = function (heapWorker, display) {
- return async function ({ dispatch, getState }) {
+ return async function ({ dispatch }) {
// Clears out all stored census data and sets the display.
dispatch(setLabelDisplay(display));
await dispatch(refresh(heapWorker));
diff --git a/devtools/client/memory/actions/snapshot.js b/devtools/client/memory/actions/snapshot.js
index 63885be251..21b54e9e28 100644
--- a/devtools/client/memory/actions/snapshot.js
+++ b/devtools/client/memory/actions/snapshot.js
@@ -727,7 +727,7 @@ const computeAndFetchDominatorTree = (exports.computeAndFetchDominatorTree =
return id;
},
- async task(heapWorker, id, removeFromCache, dispatch, getState) {
+ async task(heapWorker, id, removeFromCache, dispatch) {
const dominatorTreeId = await dispatch(
computeDominatorTree(heapWorker, id)
);
@@ -843,7 +843,7 @@ exports.clearSnapshots = function (heapWorker) {
* @param {snapshotModel} snapshot
*/
exports.deleteSnapshot = function (heapWorker, snapshot) {
- return async function ({ dispatch, getState }) {
+ return async function ({ dispatch }) {
dispatch({ type: actions.DELETE_SNAPSHOTS_START, ids: [snapshot.id] });
try {
diff --git a/devtools/client/memory/actions/tree-map-display.js b/devtools/client/memory/actions/tree-map-display.js
index e1c4a21132..38de0478c3 100644
--- a/devtools/client/memory/actions/tree-map-display.js
+++ b/devtools/client/memory/actions/tree-map-display.js
@@ -13,7 +13,7 @@ const {
* census.
*/
exports.setTreeMapAndRefresh = function (heapWorker, display) {
- return async function ({ dispatch, getState }) {
+ return async function ({ dispatch }) {
dispatch(setTreeMap(display));
await dispatch(refresh(heapWorker));
};
diff --git a/devtools/client/memory/actions/view.js b/devtools/client/memory/actions/view.js
index af1bc7b21a..5f1ab5c263 100644
--- a/devtools/client/memory/actions/view.js
+++ b/devtools/client/memory/actions/view.js
@@ -49,7 +49,7 @@ const popView = (exports.popView = function () {
* @param {HeapAnalysesClient} heapWorker
*/
exports.changeViewAndRefresh = function (view, heapWorker) {
- return async function ({ dispatch, getState }) {
+ return async function ({ dispatch }) {
dispatch(changeView(view));
await dispatch(refresh.refresh(heapWorker));
};
@@ -62,7 +62,7 @@ exports.changeViewAndRefresh = function (view, heapWorker) {
* @param {HeapAnalysesClient} heapWorker
*/
exports.popViewAndRefresh = function (heapWorker) {
- return async function ({ dispatch, getState }) {
+ return async function ({ dispatch }) {
dispatch(popView());
await dispatch(refresh.refresh(heapWorker));
};