Codemod folly::make_unique to std::make_unique
[folly.git] / folly / ssl / OpenSSLCertUtils.cpp
index 9dbbe46a4bc4e3003750a82ec956d8665fb90095..b1bdf180e737e8dbdfa5e4f1d0566d38e905aafa 100644 (file)
@@ -17,7 +17,7 @@
 
 #include <folly/ScopeGuard.h>
 #include <folly/String.h>
-#include <folly/io/async/ssl/OpenSSLPtrTypes.h>
+#include <folly/ssl/OpenSSLPtrTypes.h>
 
 namespace folly {
 namespace ssl {
@@ -159,8 +159,6 @@ std::string OpenSSLCertUtils::getDateTimeStr(const ASN1_TIME* time) {
     return "";
   }
 
-  std::array<char, 32> buf;
-
   auto bio = BioUniquePtr(BIO_new(BIO_s_mem()));
   if (bio == nullptr) {
     throw std::runtime_error("Cannot allocate bio");