mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
drop HubRuntimeStatusType Idle and Running
These are no longer used
This commit is contained in:
@@ -4,10 +4,8 @@
|
||||
import { Action } from 'redux';
|
||||
|
||||
export enum HubRuntimeStatusType {
|
||||
Idle = 'idle',
|
||||
Loading = 'loading',
|
||||
Loaded = 'loaded',
|
||||
Running = 'running',
|
||||
Error = 'error',
|
||||
}
|
||||
|
||||
|
||||
@@ -51,14 +51,10 @@ const runtime: Reducer<HubRuntimeState, Action> = (
|
||||
return HubRuntimeState.Disconnected;
|
||||
case HubMessageActionType.RuntimeStatus:
|
||||
switch (action.newStatus) {
|
||||
case HubRuntimeStatusType.Idle:
|
||||
return HubRuntimeState.Idle;
|
||||
case HubRuntimeStatusType.Loading:
|
||||
return HubRuntimeState.Loading;
|
||||
case HubRuntimeStatusType.Loaded:
|
||||
return HubRuntimeState.Loaded;
|
||||
case HubRuntimeStatusType.Running:
|
||||
return HubRuntimeState.Running;
|
||||
case HubRuntimeStatusType.Error:
|
||||
return HubRuntimeState.Error;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user