From b5aca1649d192c785ed66bf03fa8165a88e476d5 Mon Sep 17 00:00:00 2001 From: Chewbacca Date: Fri, 2 Dec 2022 09:03:08 -0500 Subject: [PATCH] Remove unused 'initReportById' function --- app/soapbox/actions/reports.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/soapbox/actions/reports.ts b/app/soapbox/actions/reports.ts index efb24bd1a..46b51cd55 100644 --- a/app/soapbox/actions/reports.ts +++ b/app/soapbox/actions/reports.ts @@ -38,17 +38,6 @@ const initReport = (account: Account, entities?: ReportedEntity) => (dispatch: A return dispatch(openModal('REPORT')); }; -// TODO: no longer used. Can be removed. -const initReportById = (accountId: string) => - (dispatch: AppDispatch, getState: () => RootState) => { - dispatch({ - type: REPORT_INIT, - account: getState().accounts.get(accountId), - }); - - dispatch(openModal('REPORT')); - }; - const cancelReport = () => ({ type: REPORT_CANCEL, }); @@ -119,7 +108,6 @@ export { REPORT_BLOCK_CHANGE, REPORT_RULE_CHANGE, initReport, - initReportById, cancelReport, toggleStatusReport, submitReport,