Skip to content

Commit fd69232

Browse files
committed
Removed handleMessage
1 parent 2a0ef46 commit fd69232

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/webviews/calc/calcWebviewView.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -69,28 +69,6 @@ export class CalcWebviewView extends GWebviewView {
6969
];
7070
}
7171

72-
protected override async handleMessage(msg: WebviewMsg): Promise<void> {
73-
const type = msg.type;
74-
75-
switch (type) {
76-
case 'getUnits':
77-
await this.postMessage({ type: 'changeUnits', payload: Control.unitsController.units });
78-
79-
break;
80-
81-
case 'getMachineType':
82-
await this.postMessage({
83-
type: 'changeMachineType',
84-
payload: Control.machineTypeController.machineType,
85-
});
86-
87-
break;
88-
89-
default:
90-
return;
91-
}
92-
}
93-
9472
protected override bootstrap(): WebviewMsg {
9573
return {
9674
type: 'bootstrap',

0 commit comments

Comments
 (0)