From 53ee647e11a6fff921626e128d6e61d4f344708c Mon Sep 17 00:00:00 2001 From: fumer-fubotv <89787347+fumer-fubotv@users.noreply.github.com> Date: Fri, 13 Oct 2023 10:48:18 -0700 Subject: [PATCH] remove redundent code --- src/BrightScriptCommands.ts | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/src/BrightScriptCommands.ts b/src/BrightScriptCommands.ts index 96202340..7e10314f 100644 --- a/src/BrightScriptCommands.ts +++ b/src/BrightScriptCommands.ts @@ -481,42 +481,6 @@ export class BrightScriptCommands { return this.workspacePath; } - public async getRemotePassword() { - this.password = await this.context.workspaceState.get('remotePassword'); - if (!this.password) { - let config = vscode.workspace.getConfiguration('brightscript.remoteControl', null); - this.password = config.get('password'); - // eslint-disable-next-line no-template-curly-in-string - if (this.password === '${promptForPassword}') { - this.password = await vscode.window.showInputBox({ - placeHolder: 'The developer account password for your Roku device', - value: '' - }); - } - } - if (!this.password) { - throw new Error('Can\'t send command: password is required.'); - } else { - await this.context.workspaceState.update('remotePassword', this.password); - } - } - - public async getWorkspacePath() { - this.workspacePath = await this.context.workspaceState.get('workspacePath'); - //let folderUri: vscode.Uri; - if (!this.workspacePath) { - if (vscode.workspace.workspaceFolders.length === 1) { - this.workspacePath = vscode.workspace.workspaceFolders[0].uri.fsPath; - } else { - //there are multiple workspaces, ask the user to specify which one they want to use - let workspaceFolder = await vscode.window.showWorkspaceFolderPick(); - if (workspaceFolder) { - this.workspacePath = workspaceFolder.uri.fsPath; - } - } - } - } - public async getSigningPassword() { this.signingPassword = await this.context.workspaceState.get('signingPassword'); if (!this.signingPassword) {