Skip to content

Commit 59d1d56

Browse files
committed
src: remove unused http2_socket_buffer from env
PR-URL: #14740 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 92c37fe commit 59d1d56

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
@@ -303,7 +303,6 @@ inline Environment::Environment(IsolateData* isolate_data,
303303
#endif
304304
handle_cleanup_waiting_(0),
305305
http_parser_buffer_(nullptr),
306-
http2_socket_buffer_(nullptr),
307306
fs_stats_field_array_(nullptr),
308307
context_(context->GetIsolate(), context) {
309308
// We'll be creating new objects so make sure we've entered the context.
@@ -330,7 +329,6 @@ inline Environment::~Environment() {
330329
delete[] heap_statistics_buffer_;
331330
delete[] heap_space_statistics_buffer_;
332331
delete[] http_parser_buffer_;
333-
delete[] http2_socket_buffer_;
334332
}
335333

336334
inline v8::Isolate* Environment::isolate() const {
@@ -489,15 +487,6 @@ inline void Environment::set_fs_stats_field_array(double* fields) {
489487
fs_stats_field_array_ = fields;
490488
}
491489

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

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)