@@ -46,15 +46,6 @@ static bool constrainRange(AvailabilityRange &existing,
46
46
return true ;
47
47
}
48
48
49
- static bool unionRange (AvailabilityRange &existing,
50
- const AvailabilityRange &other) {
51
- if (!existing.isContainedIn (other))
52
- return false ;
53
-
54
- existing = other;
55
- return true ;
56
- }
57
-
58
49
// / Returns true if `domainInfos` will be constrained by merging the domain
59
50
// / availability represented by `otherDomainInfo`. Additionally, this function
60
51
// / has a couple of side-effects:
@@ -145,11 +136,6 @@ bool AvailabilityContext::DomainInfo::constrainRange(
145
136
return ::constrainRange (range, otherRange);
146
137
}
147
138
148
- bool AvailabilityContext::DomainInfo::unionRange (
149
- const AvailabilityRange &otherRange) {
150
- return ::unionRange (range, otherRange);
151
- }
152
-
153
139
AvailabilityContext
154
140
AvailabilityContext::forPlatformRange (const AvailabilityRange &range,
155
141
const ASTContext &ctx) {
@@ -298,18 +284,6 @@ void AvailabilityContext::constrainWithPlatformRange(
298
284
storage->getDomainInfos (), ctx);
299
285
}
300
286
301
- void AvailabilityContext::unionWithPlatformRange (const AvailabilityRange &range,
302
- const ASTContext &ctx) {
303
- auto platformRange = storage->platformRange ;
304
- if (!unionRange (platformRange, range))
305
- return ;
306
-
307
- // FIXME: [availability] Should this remove any unavailable platform domains?
308
-
309
- storage = Storage::get (platformRange, storage->isDeprecated ,
310
- storage->getDomainInfos (), ctx);
311
- }
312
-
313
287
void AvailabilityContext::constrainWithAvailabilityRange (
314
288
const AvailabilityRange &range, AvailabilityDomain domain,
315
289
const ASTContext &ctx) {
0 commit comments