diff options
| author | bors <bors@rust-lang.org> | 2022-08-18 16:06:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-08-18 16:06:18 +0000 |
| commit | 917bd68b37de4e60e7203061a0a9c23b74d2b5c2 (patch) | |
| tree | 5121560794b384f9ef9a2c4481860d20647a57c5 | |
| parent | 0a33d04a3d06ce41fa4e876ef3e3dc6475fe84d2 (diff) | |
| parent | a0b257c9d91d00c054376facc6681f563f1a5e1b (diff) | |
| download | rust-917bd68b37de4e60e7203061a0a9c23b74d2b5c2.tar.gz rust-917bd68b37de4e60e7203061a0a9c23b74d2b5c2.zip | |
Auto merge of #13039 - davidbarsky:davidbarsky/remove-used-nightly-checking-code, r=Veykril
chore: remove unused `currentExtensionIsNightly()` in `config.ts` I was debugging an unrelated issue in rust-analyzer, but came across this unused code and figured that it's fine to send a fully red PR :)
| -rw-r--r-- | editors/code/src/config.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 1c58040d58c..b83582a344a 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -5,8 +5,6 @@ import { log } from "./util"; export type UpdatesChannel = "stable" | "nightly"; -const NIGHTLY_TAG = "nightly"; - export type RunnableEnvCfg = | undefined | Record<string, string> @@ -175,10 +173,6 @@ export class Config { gotoTypeDef: this.get<boolean>("hover.actions.gotoTypeDef.enable"), }; } - - get currentExtensionIsNightly() { - return this.package.releaseTag === NIGHTLY_TAG; - } } export async function updateConfig(config: vscode.WorkspaceConfiguration) { |
