Revert D874344 (it broke the build)
[folly.git] / folly / experimental / Gen.h
index 12407fc776c54218da235c3a9341513c3dd37526..47fab1976a81a51b788cc1660e52fb5f04855be3 100644 (file)
@@ -343,10 +343,6 @@ struct GeneratorBuilder;
 template<class Needle>
 class Contains;
 
-template<class Exception,
-         class ErrorHandler>
-class Guard;
-
 }
 
 /**
@@ -626,14 +622,6 @@ Contains contains(Needle&& needle) {
   return Contains(std::forward<Needle>(needle));
 }
 
-template<class Exception,
-         class ErrorHandler,
-         class Guard = detail::Guard<Exception,
-                                     typename std::decay<ErrorHandler>::type>>
-Guard guard(ErrorHandler&& handler) {
-  return Guard(std::forward<ErrorHandler>(handler));
-}
-
 }} // folly::gen
 
 #include "folly/experimental/Gen-inl.h"