[llvm] 5f5ce6e - [ADT] Remove set_is_strict_subset (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 31 07:25:08 PDT 2021


Author: Kazu Hirata
Date: 2021-07-31T07:24:53-07:00
New Revision: 5f5ce6e9a7eb0f735791662cd49efc2d934796fd

URL: https://github.com/llvm/llvm-project/commit/5f5ce6e9a7eb0f735791662cd49efc2d934796fd
DIFF: https://github.com/llvm/llvm-project/commit/5f5ce6e9a7eb0f735791662cd49efc2d934796fd.diff

LOG: [ADT] Remove set_is_strict_subset (NFC)

The last use was removed on Mar 13, 2020 in commit
6b57d7f57d2cec7ec717757a6a52f2203d6e9db7.

Added: 
    

Modified: 
    llvm/include/llvm/ADT/SetOperations.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/SetOperations.h b/llvm/include/llvm/ADT/SetOperations.h
index 62f1d26dc1c25..3e30b6bb83d3a 100644
--- a/llvm/include/llvm/ADT/SetOperations.h
+++ b/llvm/include/llvm/ADT/SetOperations.h
@@ -77,15 +77,6 @@ bool set_is_subset(const S1Ty &S1, const S2Ty &S2) {
   return true;
 }
 
-/// set_is_strict_subset(A, B) - Return true iff A in B and and A != B
-///
-template <class S1Ty, class S2Ty>
-bool set_is_strict_subset(const S1Ty &S1, const S2Ty &S2) {
-  if (S1.size() >= S2.size())
-    return false;
-  return set_is_subset(S1, S2);
-}
-
 } // End llvm namespace
 
 #endif


        


More information about the llvm-commits mailing list