Cleanup the simplify_type implementation.
[oota-llvm.git] / include / llvm / ADT / Optional.h
index 81d73ed8b99754250e170a76a389e4424ace2bd3..194e53fac21369df80da5976637a094474432b04 100644 (file)
@@ -128,20 +128,6 @@ public:
 #endif
 };
 
-template<typename T> struct simplify_type;
-
-template <typename T>
-struct simplify_type<const Optional<T> > {
-  typedef const T* SimpleType;
-  static SimpleType getSimplifiedValue(const Optional<T> &Val) {
-    return Val.getPointer();
-  }
-};
-
-template <typename T>
-struct simplify_type<Optional<T> >
-  : public simplify_type<const Optional<T> > {};
-
 template <typename T> struct isPodLike;
 template <typename T> struct isPodLike<Optional<T> > {
   // An Optional<T> is pod-like if T is.