[clang] 69f7210 - Remove unused FileEntry::operator<. NFC

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 6 14:39:33 PDT 2022


Author: Sam McCall
Date: 2022-04-06T23:39:17+02:00
New Revision: 69f7210657a302d0f0a756eb91ec4f54d85fb704

URL: https://github.com/llvm/llvm-project/commit/69f7210657a302d0f0a756eb91ec4f54d85fb704
DIFF: https://github.com/llvm/llvm-project/commit/69f7210657a302d0f0a756eb91ec4f54d85fb704.diff

LOG: Remove unused FileEntry::operator<. NFC

Added: 
    

Modified: 
    clang/include/clang/Basic/FileEntry.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/FileEntry.h b/clang/include/clang/Basic/FileEntry.h
index 6e91b42e18b71..a0a041c7ab3b9 100644
--- a/clang/include/clang/Basic/FileEntry.h
+++ b/clang/include/clang/Basic/FileEntry.h
@@ -374,8 +374,6 @@ class FileEntry {
   /// Return the directory the file lives in.
   const DirectoryEntry *getDir() const { return Dir; }
 
-  bool operator<(const FileEntry &RHS) const { return UniqueID < RHS.UniqueID; }
-
   /// Check whether the file is a named pipe (and thus can't be opened by
   /// the native FileManager methods).
   bool isNamedPipe() const { return IsNamedPipe; }


        


More information about the cfe-commits mailing list