Remove unused local in OpenSSLCertUtils
authorChristopher Dykes <cdykes@fb.com>
Sat, 15 Apr 2017 00:03:04 +0000 (17:03 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 15 Apr 2017 00:04:57 +0000 (17:04 -0700)
Summary: It's unused, and MSVC is warning about that fact.

Reviewed By: anirudhvr

Differential Revision: D4894403

fbshipit-source-id: 767b944eb9fa0376c795555357c09bbf9179e24f

folly/ssl/OpenSSLCertUtils.cpp

index 9dbbe46a4bc4e3003750a82ec956d8665fb90095..10c5f9964e0799f38a3c68d57684d8ff9b53e597 100644 (file)
@@ -159,8 +159,6 @@ std::string OpenSSLCertUtils::getDateTimeStr(const ASN1_TIME* time) {
     return "";
   }
 
     return "";
   }
 
-  std::array<char, 32> buf;
-
   auto bio = BioUniquePtr(BIO_new(BIO_s_mem()));
   if (bio == nullptr) {
     throw std::runtime_error("Cannot allocate bio");
   auto bio = BioUniquePtr(BIO_new(BIO_s_mem()));
   if (bio == nullptr) {
     throw std::runtime_error("Cannot allocate bio");