diff --git a/desktop/flipper-ui-core/src/dispatcher/pluginManager.tsx b/desktop/flipper-ui-core/src/dispatcher/pluginManager.tsx index 653b160af..865eb3708 100644 --- a/desktop/flipper-ui-core/src/dispatcher/pluginManager.tsx +++ b/desktop/flipper-ui-core/src/dispatcher/pluginManager.tsx @@ -140,9 +140,6 @@ async function processPluginCommandsQueue( case 'UNINSTALL_PLUGIN': uninstallPlugin(store, command.payload); break; - case 'UPDATE_PLUGIN': - updatePlugin(store, command.payload); - break; case 'SWITCH_PLUGIN': switchPlugin(store, command.payload); break; diff --git a/desktop/flipper-ui-core/src/reducers/pluginManager.tsx b/desktop/flipper-ui-core/src/reducers/pluginManager.tsx index 1c98e55a4..f4c66a723 100644 --- a/desktop/flipper-ui-core/src/reducers/pluginManager.tsx +++ b/desktop/flipper-ui-core/src/reducers/pluginManager.tsx @@ -19,7 +19,6 @@ export type State = { export type PluginCommand = | LoadPluginAction | UninstallPluginAction - | UpdatePluginAction | SwitchPluginAction; export type LoadPluginActionPayload = { @@ -47,11 +46,6 @@ export type UpdatePluginActionPayload = { enablePlugin: boolean; }; -export type UpdatePluginAction = { - type: 'UPDATE_PLUGIN'; - payload: UpdatePluginActionPayload; -}; - export type SwitchPluginActionPayload = { plugin: PluginDefinition; selectedApp?: string; @@ -80,7 +74,6 @@ export default function reducer( switch (action.type) { case 'LOAD_PLUGIN': case 'UNINSTALL_PLUGIN': - case 'UPDATE_PLUGIN': case 'SWITCH_PLUGIN': return produce(state, (draft) => { draft.pluginCommandsQueue.push(action); @@ -111,13 +104,6 @@ export const pluginCommandsProcessed = (payload: number): Action => ({ payload, }); -export const registerPluginUpdate = ( - payload: UpdatePluginActionPayload, -): Action => ({ - type: 'UPDATE_PLUGIN', - payload, -}); - export const switchPlugin = (payload: SwitchPluginActionPayload): Action => ({ type: 'SWITCH_PLUGIN', payload,