From 5980499fff39604a0dc8a9471993cc093339d6f6 Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Thu, 15 Aug 2019 16:28:51 +0000 Subject: [PATCH] Bug 1541631 - Part 6: Remove unused action return values. r=jlast Differential Revision: https://phabricator.services.mozilla.com/D42031 --HG-- extra : moz-landing-system : lando --- .../debugger/src/actions/breakpoints/breakpointPositions.js | 2 -- devtools/client/debugger/src/actions/sources/loadSourceText.js | 2 -- devtools/client/debugger/src/actions/sources/symbols.js | 2 -- devtools/client/debugger/src/utils/memoizableAction.js | 2 +- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/devtools/client/debugger/src/actions/breakpoints/breakpointPositions.js b/devtools/client/debugger/src/actions/breakpoints/breakpointPositions.js index 7eebb37ae24a..fc1772f72daa 100644 --- a/devtools/client/debugger/src/actions/breakpoints/breakpointPositions.js +++ b/devtools/client/debugger/src/actions/breakpoints/breakpointPositions.js @@ -178,8 +178,6 @@ async function _setBreakpointPositions(cx, sourceId, line, thunkArgs) { source: source, positions, }); - - return positions; } function generatedSourceActorKey(state, sourceId) { diff --git a/devtools/client/debugger/src/actions/sources/loadSourceText.js b/devtools/client/debugger/src/actions/sources/loadSourceText.js index ac9657660c32..59ba66e2c722 100644 --- a/devtools/client/debugger/src/actions/sources/loadSourceText.js +++ b/devtools/client/debugger/src/actions/sources/loadSourceText.js @@ -124,8 +124,6 @@ async function loadSourceTextPromise( await dispatch(addBreakpoint(cx, location, options, disabled)); } } - - return newSource; } export function loadSourceById(cx: Context, sourceId: string) { diff --git a/devtools/client/debugger/src/actions/sources/symbols.js b/devtools/client/debugger/src/actions/sources/symbols.js index 2af607e0cc2f..e9bbbda64c6b 100644 --- a/devtools/client/debugger/src/actions/sources/symbols.js +++ b/devtools/client/debugger/src/actions/sources/symbols.js @@ -34,8 +34,6 @@ async function doSetSymbols(cx, source, { dispatch, getState, parser }) { if (symbols && symbols.framework) { dispatch(updateTab(source, symbols.framework)); } - - return symbols; } type Args = { cx: Context, source: Source }; diff --git a/devtools/client/debugger/src/utils/memoizableAction.js b/devtools/client/debugger/src/utils/memoizableAction.js index 6e85ea6d750e..17c22d739068 100644 --- a/devtools/client/debugger/src/utils/memoizableAction.js +++ b/devtools/client/debugger/src/utils/memoizableAction.js @@ -11,7 +11,7 @@ type MemoizableActionParams = { hasValue: (args: Args, thunkArgs: ThunkArgs) => boolean, getValue: (args: Args, thunkArgs: ThunkArgs) => Result, createKey: (args: Args, thunkArgs: ThunkArgs) => string, - action: (args: Args, thunkArgs: ThunkArgs) => Promise, + action: (args: Args, thunkArgs: ThunkArgs) => Promise, }; /*