THRIFT-2874: C++ - unused field removed from TBinaryProtocol

Client: C++
Patch: Nobuaki Sukegawa

This closes #301
diff --git a/lib/cpp/src/thrift/protocol/TBinaryProtocol.h b/lib/cpp/src/thrift/protocol/TBinaryProtocol.h
index 88b91e5..25f0255 100644
--- a/lib/cpp/src/thrift/protocol/TBinaryProtocol.h
+++ b/lib/cpp/src/thrift/protocol/TBinaryProtocol.h
@@ -48,9 +48,7 @@
       string_limit_(0),
       container_limit_(0),
       strict_read_(false),
-      strict_write_(true),
-      string_buf_(NULL),
-      string_buf_size_(0) {}
+      strict_write_(true) {}
 
   TBinaryProtocolT(boost::shared_ptr<Transport_> trans,
                    int32_t string_limit,
@@ -62,16 +60,7 @@
       string_limit_(string_limit),
       container_limit_(container_limit),
       strict_read_(strict_read),
-      strict_write_(strict_write),
-      string_buf_(NULL),
-      string_buf_size_(0) {}
-
-  ~TBinaryProtocolT() {
-    if (string_buf_ != NULL) {
-      std::free(string_buf_);
-      string_buf_size_ = 0;
-    }
-  }
+      strict_write_(strict_write) {}
 
   void setStringSizeLimit(int32_t string_limit) { string_limit_ = string_limit; }
 
@@ -190,11 +179,6 @@
   // Enforce presence of version identifier
   bool strict_read_;
   bool strict_write_;
-
-  // Buffer for reading strings, save for the lifetime of the protocol to
-  // avoid memory churn allocating memory on every string read
-  uint8_t* string_buf_;
-  int32_t string_buf_size_;
 };
 
 typedef TBinaryProtocolT<TTransport> TBinaryProtocol;