Skip to content

Commit 99fda1a

Browse files
[Basic] Remove getVirtualFile (#151086)
This patch removes getVirtualFile because it has been deprecated for more than 10 months since: commit b1aea98 Author: Jan Svoboda <[email protected]> Date: Wed Sep 25 10:36:44 2024 -0700 I'm not aware of any downstream use AFAICT.
1 parent e874615 commit 99fda1a

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

clang/include/clang/Basic/FileManager.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,6 @@ class FileManager : public RefCountedBase<FileManager> {
237237
FileEntryRef getVirtualFileRef(StringRef Filename, off_t Size,
238238
time_t ModificationTime);
239239

240-
LLVM_DEPRECATED("Functions returning FileEntry are deprecated.",
241-
"getVirtualFileRef()")
242-
const FileEntry *getVirtualFile(StringRef Filename, off_t Size,
243-
time_t ModificationTime);
244-
245240
/// Retrieve a FileEntry that bypasses VFE, which is expected to be a virtual
246241
/// file entry, to access the real file. The returned FileEntry will have
247242
/// the same filename as FE but a different identity and its own stat.

clang/lib/Basic/FileManager.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,6 @@ void FileManager::trackVFSUsage(bool Active) {
368368
});
369369
}
370370

371-
const FileEntry *FileManager::getVirtualFile(StringRef Filename, off_t Size,
372-
time_t ModificationTime) {
373-
return &getVirtualFileRef(Filename, Size, ModificationTime).getFileEntry();
374-
}
375-
376371
FileEntryRef FileManager::getVirtualFileRef(StringRef Filename, off_t Size,
377372
time_t ModificationTime) {
378373
++NumFileLookups;

0 commit comments

Comments
 (0)