Skip to content

Commit 1419533

Browse files
committed
src: remove unused http2_socket_buffer from env
PR-URL: #14740 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 8172c8a commit 1419533

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/env-inl.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ inline Environment::Environment(IsolateData* isolate_data,
302302
#endif
303303
handle_cleanup_waiting_(0),
304304
http_parser_buffer_(nullptr),
305-
http2_socket_buffer_(nullptr),
306305
fs_stats_field_array_(nullptr),
307306
context_(context->GetIsolate(), context) {
308307
// We'll be creating new objects so make sure we've entered the context.
@@ -329,7 +328,6 @@ inline Environment::~Environment() {
329328
delete[] heap_statistics_buffer_;
330329
delete[] heap_space_statistics_buffer_;
331330
delete[] http_parser_buffer_;
332-
delete[] http2_socket_buffer_;
333331
}
334332

335333
inline v8::Isolate* Environment::isolate() const {
@@ -488,15 +486,6 @@ inline void Environment::set_fs_stats_field_array(double* fields) {
488486
fs_stats_field_array_ = fields;
489487
}
490488

491-
inline char* Environment::http2_socket_buffer() const {
492-
return http2_socket_buffer_;
493-
}
494-
495-
inline void Environment::set_http2_socket_buffer(char* buffer) {
496-
CHECK_EQ(http2_socket_buffer_, nullptr); // Should be set only once.
497-
http2_socket_buffer_ = buffer;
498-
}
499-
500489
inline IsolateData* Environment::isolate_data() const {
501490
return isolate_data_;
502491
}

src/env.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,6 @@ class Environment {
598598

599599
inline char* http_parser_buffer() const;
600600
inline void set_http_parser_buffer(char* buffer);
601-
inline char* http2_socket_buffer() const;
602-
inline void set_http2_socket_buffer(char* buffer);
603601

604602
inline double* fs_stats_field_array() const;
605603
inline void set_fs_stats_field_array(double* fields);
@@ -707,7 +705,6 @@ class Environment {
707705
double* heap_space_statistics_buffer_ = nullptr;
708706

709707
char* http_parser_buffer_;
710-
char* http2_socket_buffer_;
711708

712709
double* fs_stats_field_array_;
713710

0 commit comments

Comments
 (0)