File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ class SourceFile final : public FileUnit {
172
172
173
173
// / The list of top-level declarations in the source file. This is \c None if
174
174
// / they have not yet been parsed.
175
- // / FIXME: Once addTopLevelDecl/prependTopLevelDecl/truncateTopLevelDecls
175
+ // / FIXME: Once addTopLevelDecl/prependTopLevelDecl
176
176
// / have been removed, this can become an optional ArrayRef.
177
177
Optional<std::vector<Decl *>> Decls;
178
178
@@ -232,15 +232,6 @@ class SourceFile final : public FileUnit {
232
232
return llvm::makeArrayRef (*Decls);
233
233
}
234
234
235
- // / Truncates the list of top-level decls so it contains \c count elements. Do
236
- // / not add any additional uses of this function.
237
- void truncateTopLevelDecls (unsigned count) {
238
- // Force decl parsing if we haven't already.
239
- (void )getTopLevelDecls ();
240
- assert (count <= Decls->size () && " Can only truncate top-level decls!" );
241
- Decls->resize (count);
242
- }
243
-
244
235
// / Retrieve the parsing options for the file.
245
236
ParsingOptions getParsingOptions () const { return ParsingOpts; }
246
237
You can’t perform that action at this time.
0 commit comments