8000 [Simulator] Remove radio flag. (#916) · nsavas2000/python-editor-v3@19105a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 19105a5

Browse files
[Simulator] Remove radio flag. (microbit-foundation#916)
1 parent 945ee0e commit 19105a5

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/flags.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ export type Flag =
3939
* Added to support user-testing and has the nice side-effect of disabling
4040
* the dialog for local development so is worth keeping for that use alone.
4141
*/
42-
| "noWelcome"
43-
/**
44-
* Simulator radio support.
45-
*/
46-
| "simRadio";
42+
| "noWelcome";
4743

4844
interface FlagMetadata {
4945
defaultOnStages: string[];
@@ -56,7 +52,6 @@ const allFlags: FlagMetadata[] = [
5652
{ name: "dndDebug", defaultOnStages: [] },
5753
{ name: "livePreview", defaultOnStages: ["local", "REVIEW"] },
5854
{ name: "noWelcome", defaultOnStages: ["local", "REVIEW"] },
59-
{ name: "simRadio", defaultOnStages: [] },
6055
];
6156

6257
type Flags = Record<Flag, boolean>;

src/simulator/SimulatorModules.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
SensorStateKey,
2323
SimulatorState,
2424
} from "../device/simulator";
25-
import { flags } from "../flags";
2625
import { useRouterState } from "../router-hooks";
2726
import AccelerometerModule from "./AccelerometerModule";
2827
import ButtonsModule from "./ButtonModule";
@@ -46,10 +45,8 @@ const modules: string[] = [
4645
"soundLevel",
4746
"buttons",
4847
"pins",
48+
"radio",
4949
];
50-
if (flags.simRadio) {
51-
modules.push("radio");
52-
}
5350

5451
const titles: Record<string, string> = {
5552
// Sensor id mapped to translatable UI string ids. Sorted.

0 commit comments

Comments
 (0)
0