Skip to content

Commit c1e6ccd

Browse files
Remove hard-coded upcoming feature flags
Upcoming feature flags are now included in the metadata file. Removes the hard-coded values and the code that injected them into the proposals.
1 parent 3dc8f29 commit c1e6ccd

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

assets/javascripts/swift-evolution.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,6 @@ let proposals
2020
/** Array of language versions in which proposals have been implemented. */
2121
let languageVersions
2222

23-
/**
24-
* Mapping of proposal ids to upcoming feature flags.
25-
* Temporary until upcomingFeatureFlag property is returned in proposals.json.
26-
*/
27-
const upcomingFeatureFlags = new Map([
28-
['SE-0274', { "flag": 'ConciseMagicFile' }],
29-
['SE-0286', { "flag": 'ForwardTrailingClosures' }],
30-
['SE-0335', { "flag": 'ExistentialAny' }],
31-
['SE-0354', { "flag": 'BareSlashRegexLiterals' }],
32-
['SE-0383', { "flag": 'DeprecateApplicationMain' }],
33-
['SE-0384', { "flag": 'ImportObjcForwardDeclarations' }],
34-
['SE-0401', { "flag": 'DisableOutwardActorInference' }],
35-
['SE-0409', { "flag": 'InternalImportsByDefault' }],
36-
['SE-0411', { "flag": 'IsolatedDefaultValues' }],
37-
['SE-0413', { "flag": 'FullTypedThrows' }],
38-
['SE-0418', { "flag": 'InferSendableFromCaptures' }],
39-
['SE-0423', { "flag": 'DynamicActorIsolation' }],
40-
])
41-
4223
/** Storage for the user's current selection of filters when filtering is toggled off. */
4324
let filterSelection = []
4425

@@ -140,14 +121,6 @@ function init() {
140121
proposals = proposals.filter(function (proposal) {
141122
return !proposal.errors
142123
})
143-
144-
// Add upcomingFeatureFlag to proposal if present in mapping.
145-
// Temporary until upcomingFeatureFlag property is returned in proposals.json.
146-
for (var proposal of proposals) {
147-
if (upcomingFeatureFlags.has(proposal.id)) {
148-
proposal.upcomingFeatureFlag = upcomingFeatureFlags.get(proposal.id)
149-
}
150-
}
151124

152125
// Descending numeric sort based the numeric nnnn in a proposal ID's SE-nnnn
153126
proposals.sort(function compareProposalIDs (p1, p2) {

0 commit comments

Comments
 (0)