[ADT] Delete unused llvm::pointer_union_detail::AssignableFrom
authorFangrui Song <i@maskray.me>
Wed, 22 Jul 2020 16:23:52 +0000 (09:23 -0700)
committerFangrui Song <i@maskray.me>
Wed, 22 Jul 2020 16:24:36 +0000 (09:24 -0700)
Noticed by Zhiwei Chen

llvm/include/llvm/ADT/PointerUnion.h

index 6fecff8..c396910 100644 (file)
@@ -93,13 +93,6 @@ namespace pointer_union_detail {
     static constexpr int NumLowBitsAvailable = lowBitsAvailable<PTs...>();
   };
 
-  /// Implement assignment in terms of construction.
-  template <typename Derived, typename T> struct AssignableFrom {
-    Derived &operator=(T t) {
-      return static_cast<Derived &>(*this) = Derived(t);
-    }
-  };
-
   template <typename Derived, typename ValTy, int I, typename ...Types>
   class PointerUnionMembers;