From 59d1d56da674a9e3e5c3dbae9c180ff811b59953 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 10 Aug 2017 15:59:26 +0200 Subject: [PATCH] src: remove unused http2_socket_buffer from env MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/14740 Reviewed-By: Colin Ihrig Reviewed-By: Ben Noordhuis Reviewed-By: Tobias Nießen --- src/env-inl.h | 11 ----------- src/env.h | 3 --- 2 files changed, 14 deletions(-) diff --git a/src/env-inl.h b/src/env-inl.h index c459044bed4c55..b248fd8a3e7e60 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -303,7 +303,6 @@ inline Environment::Environment(IsolateData* isolate_data, #endif handle_cleanup_waiting_(0), http_parser_buffer_(nullptr), - http2_socket_buffer_(nullptr), fs_stats_field_array_(nullptr), context_(context->GetIsolate(), context) { // We'll be creating new objects so make sure we've entered the context. @@ -330,7 +329,6 @@ inline Environment::~Environment() { delete[] heap_statistics_buffer_; delete[] heap_space_statistics_buffer_; delete[] http_parser_buffer_; - delete[] http2_socket_buffer_; } inline v8::Isolate* Environment::isolate() const { @@ -489,15 +487,6 @@ inline void Environment::set_fs_stats_field_array(double* fields) { fs_stats_field_array_ = fields; } -inline char* Environment::http2_socket_buffer() const { - return http2_socket_buffer_; -} - -inline void Environment::set_http2_socket_buffer(char* buffer) { - CHECK_EQ(http2_socket_buffer_, nullptr); // Should be set only once. - http2_socket_buffer_ = buffer; -} - inline IsolateData* Environment::isolate_data() const { return isolate_data_; } diff --git a/src/env.h b/src/env.h index abc765c6dc3331..f0774e61a65d08 100644 --- a/src/env.h +++ b/src/env.h @@ -598,8 +598,6 @@ class Environment { inline char* http_parser_buffer() const; inline void set_http_parser_buffer(char* buffer); - inline char* http2_socket_buffer() const; - inline void set_http2_socket_buffer(char* buffer); inline double* fs_stats_field_array() const; inline void set_fs_stats_field_array(double* fields); @@ -707,7 +705,6 @@ class Environment { double* heap_space_statistics_buffer_ = nullptr; char* http_parser_buffer_; - char* http2_socket_buffer_; double* fs_stats_field_array_;