Skip to content

Commit 917bd68

Browse files
committed
Auto merge of rust-lang#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 :)
2 parents 0a33d04 + a0b257c commit 917bd68

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

editors/code/src/config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import { log } from "./util";
55

66
export type UpdatesChannel = "stable" | "nightly";
77

8-
const NIGHTLY_TAG = "nightly";
9-
108
export type RunnableEnvCfg =
119
| undefined
1210
| Record<string, string>
@@ -175,10 +173,6 @@ export class Config {
175173
gotoTypeDef: this.get<boolean>("hover.actions.gotoTypeDef.enable"),
176174
};
177175
}
178-
179-
get currentExtensionIsNightly() {
180-
return this.package.releaseTag === NIGHTLY_TAG;
181-
}
182176
}
183177

184178
export async function updateConfig(config: vscode.WorkspaceConfiguration) {

0 commit comments

Comments
 (0)