Skip to content

Commit b15603c

Browse files
remove unused methods and deps
1 parent e9137f7 commit b15603c

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

arduino-ide-extension/src/browser/contributions/upload-sketch.ts

-10
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { UserFieldsDialog } from '../dialogs/user-fields/user-fields-dialog';
1515
import { DisposableCollection, nls } from '@theia/core/lib/common';
1616
import { CurrentSketch } from '../../common/protocol/sketches-service-client-impl';
1717
import type { VerifySketchParams } from './verify-sketch';
18-
import { NotificationCenter } from '../notification-center';
1918

2019
@injectable()
2120
export class UploadSketch extends CoreServiceContribution {
@@ -25,9 +24,6 @@ export class UploadSketch extends CoreServiceContribution {
2524
@inject(UserFieldsDialog)
2625
private readonly userFieldsDialog: UserFieldsDialog;
2726

28-
@inject(NotificationCenter)
29-
private readonly notificationCenter: NotificationCenter;
30-
3127
private boardRequiresUserFields = false;
3228
private readonly cachedUserFields: Map<string, BoardUserField[]> = new Map();
3329
private readonly menuActionsDisposables = new DisposableCollection();
@@ -196,9 +192,6 @@ export class UploadSketch extends CoreServiceContribution {
196192
this.uploadInProgress = true;
197193
this.onDidChangeEmitter.fire();
198194
this.clearVisibleNotification();
199-
this.notificationCenter.notifyUploadAttemptInProgress(
200-
this.uploadInProgress
201-
);
202195

203196
const verifyOptions =
204197
await this.commandService.executeCommand<CoreService.Options.Compile>(
@@ -251,9 +244,6 @@ export class UploadSketch extends CoreServiceContribution {
251244
} finally {
252245
this.uploadInProgress = false;
253246
this.onDidChangeEmitter.fire();
254-
this.notificationCenter.notifyUploadAttemptInProgress(
255-
this.uploadInProgress
256-
);
257247
}
258248
}
259249

arduino-ide-extension/src/node/notification-service-server.ts

-6
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ export class NotificationServiceServerImpl
8282
);
8383
}
8484

85-
notifyUploadAttemptInProgress(event: boolean): void {
86-
this.clients.forEach((client) =>
87-
client.notifyUploadAttemptInProgress(event)
88-
);
89-
}
90-
9185
setClient(client: NotificationServiceClient): void {
9286
this.clients.push(client);
9387
}

0 commit comments

Comments
 (0)