@@ -46,15 +46,6 @@ static bool constrainRange(AvailabilityRange &existing,
4646 return true ;
4747}
4848
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-
5849// / Returns true if `domainInfos` will be constrained by merging the domain
5950// / availability represented by `otherDomainInfo`. Additionally, this function
6051// / has a couple of side-effects:
@@ -145,11 +136,6 @@ bool AvailabilityContext::DomainInfo::constrainRange(
145136 return ::constrainRange (range, otherRange);
146137}
147138
148- bool AvailabilityContext::DomainInfo::unionRange (
149- const AvailabilityRange &otherRange) {
150- return ::unionRange (range, otherRange);
151- }
152-
153139AvailabilityContext
154140AvailabilityContext::forPlatformRange (const AvailabilityRange &range,
155141 const ASTContext &ctx) {
@@ -298,18 +284,6 @@ void AvailabilityContext::constrainWithPlatformRange(
298284 storage->getDomainInfos (), ctx);
299285}
300286
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-
313287void AvailabilityContext::constrainWithAvailabilityRange (
314288 const AvailabilityRange &range, AvailabilityDomain domain,
315289 const ASTContext &ctx) {
0 commit comments