mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
remove unused app.action.toggleDocs
This commit is contained in:
+1
-12
@@ -13,8 +13,6 @@ export enum AppActionType {
|
||||
OpenSettings = 'app.action.openSettings',
|
||||
/** Close settings dialog. */
|
||||
CloseSettings = 'app.action.closeSettings',
|
||||
/** Toggle documentation visibility. */
|
||||
ToggleDocs = 'app.action.toggleDocs',
|
||||
}
|
||||
|
||||
/** Action that indicates the app has just started. */
|
||||
@@ -41,17 +39,8 @@ export function closeSettings(): AppCloseSettingsAction {
|
||||
return { type: AppActionType.CloseSettings };
|
||||
}
|
||||
|
||||
/** Action to toggle documentation visibility. */
|
||||
export type AppToggleDocsAction = Action<AppActionType.ToggleDocs>;
|
||||
|
||||
/** Creates an action to toggle documentation visibility. */
|
||||
export function toggleDocs(): AppToggleDocsAction {
|
||||
return { type: AppActionType.ToggleDocs };
|
||||
}
|
||||
|
||||
/** common type for all app actions. */
|
||||
export type AppAction =
|
||||
| AppStartupAction
|
||||
| AppOpenSettingsAction
|
||||
| AppCloseSettingsAction
|
||||
| AppToggleDocsAction;
|
||||
| AppCloseSettingsAction;
|
||||
|
||||
Reference in New Issue
Block a user