Skip to content

Commit

Permalink
Remove unused funcs in BrightScriptCommands.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Mar 12, 2024
1 parent 2f75871 commit c65fa35
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions src/BrightScriptCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,49 +463,6 @@ export class BrightScriptCommands {
return this.workspacePath;
}

public async getSigningPassword(showPrompt = true): Promise<string> {
let signingPassword = '';
signingPassword = await this.context.workspaceState.get('signingPassword');
if (!signingPassword) {
let config = vscode.workspace.getConfiguration('brightscript.remoteControl', null);
signingPassword = config.get('signingPassword');
// eslint-disable-next-line no-template-curly-in-string
if (!signingPassword && showPrompt) {
signingPassword = await vscode.window.showInputBox({
placeHolder: 'Enter the signing password used for creating signed packages',
value: ''
});
}
}
if (!signingPassword) {
throw new Error('Can\'t send command: signingPassword is required.');
} else {
await this.context.workspaceState.update('signingPassword', signingPassword);
return signingPassword;
}
}

public async getSignedPackagePath() {
let signedPackagePath = await this.context.workspaceState.get('signedPackagePath');
if (!signedPackagePath) {
let config = vscode.workspace.getConfiguration('brightscript.remoteControl', null);
signedPackagePath = config.get('signedPackagePath');
// eslint-disable-next-line no-template-curly-in-string
if (!signedPackagePath) {
signedPackagePath = await vscode.window.showInputBox({
placeHolder: 'Enter the path for the signed package',
value: ''
});
}
}
if (!signedPackagePath) {
throw new Error('Can\'t send command: Signed Package Path is required.');
} else {
await this.context.workspaceState.update('signedPackagePath', signedPackagePath);
return signedPackagePath;
}
}

public registerKeypressNotifier(notifier: (key: string, literalCharacter: boolean) => void) {
this.keypressNotifiers.push(notifier);
}
Expand Down

0 comments on commit c65fa35

Please sign in to comment.