Skip to content

Commit

Permalink
Remove unused prompt code (microsoft#10996)
Browse files Browse the repository at this point in the history
  • Loading branch information
chlafreniere authored Jun 19, 2020
1 parent 88fce76 commit eaf753f
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 322 deletions.
50 changes: 0 additions & 50 deletions extensions/notebook/src/prompts/checkbox.ts

This file was deleted.

76 changes: 0 additions & 76 deletions extensions/notebook/src/prompts/expand.ts

This file was deleted.

22 changes: 1 addition & 21 deletions extensions/notebook/src/prompts/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,14 @@
// License: https://github.com/DonJayamanne/bowerVSCode/blob/master/LICENSE

import Prompt from './prompt';
import InputPrompt from './input';
import PasswordPrompt from './password';
import ListPrompt from './list';
import ConfirmPrompt from './confirm';
import CheckboxPrompt from './checkbox';
import ExpandPrompt from './expand';

export default class PromptFactory {

public static createPrompt(question: any, ignoreFocusOut?: boolean): Prompt {
/**
* TODO:
* - folder
*/
switch (question.type || 'input') {
case 'string':
case 'input':
return new InputPrompt(question, ignoreFocusOut);
case 'password':
return new PasswordPrompt(question, ignoreFocusOut);
case 'list':
return new ListPrompt(question, ignoreFocusOut);
switch (question.type) {
case 'confirm':
return new ConfirmPrompt(question, ignoreFocusOut);
case 'checkbox':
return new CheckboxPrompt(question, ignoreFocusOut);
case 'expand':
return new ExpandPrompt(question, ignoreFocusOut);
default:
throw new Error(`Could not find a prompt for question type ${question.type}`);
}
Expand Down
59 changes: 0 additions & 59 deletions extensions/notebook/src/prompts/input.ts

This file was deleted.

32 changes: 0 additions & 32 deletions extensions/notebook/src/prompts/list.ts

This file was deleted.

14 changes: 0 additions & 14 deletions extensions/notebook/src/prompts/password.ts

This file was deleted.

70 changes: 0 additions & 70 deletions extensions/notebook/src/prompts/progressIndicator.ts

This file was deleted.

0 comments on commit eaf753f

Please sign in to comment.