@@ -154,23 +154,16 @@ class TypeRefinementContext {
154154
155155 SourceRange SrcRange;
156156
157- // / Runtime availability information for the code in this context.
158157 AvailabilityContext AvailabilityInfo;
159158
160- // / Runtime availability information as explicitly declared by attributes
161- // / for the inlinable code in this context. Compared to AvailabilityInfo,
162- // / this is not bounded to the minimum deployment OS version.
163- AvailabilityContext AvailabilityInfoExplicit;
164-
165159 std::vector<TypeRefinementContext *> Children;
166160
167161 TypeRefinementContext (ASTContext &Ctx, IntroNode Node,
168162 TypeRefinementContext *Parent, SourceRange SrcRange,
169- const AvailabilityContext &Info,
170- const AvailabilityContext &InfoExplicit);
163+ const AvailabilityContext &Info);
171164
172165public:
173-
166+
174167 // / Create the root refinement context for the given SourceFile.
175168 static TypeRefinementContext *createRoot (SourceFile *SF,
176169 const AvailabilityContext &Info);
@@ -179,9 +172,8 @@ class TypeRefinementContext {
179172 static TypeRefinementContext *createForDecl (ASTContext &Ctx, Decl *D,
180173 TypeRefinementContext *Parent,
181174 const AvailabilityContext &Info,
182- const AvailabilityContext &InfoExplicit,
183175 SourceRange SrcRange);
184-
176+
185177 // / Create a refinement context for the Then branch of the given IfStmt.
186178 static TypeRefinementContext *
187179 createForIfStmtThen (ASTContext &Ctx, IfStmt *S, TypeRefinementContext *Parent,
@@ -248,19 +240,11 @@ class TypeRefinementContext {
248240 SourceRange getSourceRange () const { return SrcRange; }
249241
250242 // / Returns the information on what can be assumed present at run time when
251- // / running code contained in this context, taking into account the minimum
252- // / deployment target.
243+ // / running code contained in this context.
253244 const AvailabilityContext &getAvailabilityInfo () const {
254245 return AvailabilityInfo;
255246 }
256247
257- // / Returns the information on what can be assumed present at run time when
258- // / running code contained in this context if it were to be inlined,
259- // / without considering the minimum deployment target.
260- const AvailabilityContext &getAvailabilityInfoExplicit () const {
261- return AvailabilityInfoExplicit;
262- }
263-
264248 // / Adds a child refinement context.
265249 void addChild (TypeRefinementContext *Child) {
266250 assert (Child->getSourceRange ().isValid ());
0 commit comments