http2: eliminate dead code · nodejs/node@68cd233 · GitHub
Skip to content

Commit 68cd233

Browse files
jasnellMylesBorins
authored andcommitted
http2: eliminate dead code
PR-URL: #15693 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
1 parent 078ee27 commit 68cd233

3 files changed

Lines changed: 0 additions & 20 deletions

File tree

src/node_http2.cc

Lines changed: 0 additions & 3 deletions

src/node_http2_core-inl.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ extern Freelist<Nghttp2Stream, FREELIST_MAX> stream_free_list;
3030

3131
extern Freelist<nghttp2_header_list, FREELIST_MAX> header_free_list;
3232

33-
extern Freelist<nghttp2_data_chunks_t, FREELIST_MAX>
34-
data_chunks_free_list;
35-
3633
#ifdef NODE_DEBUG_HTTP2
3734
inline int Nghttp2Session::OnNghttpError(nghttp2_session* session,
3835
const char* message,
@@ -905,12 +902,6 @@ inline void Nghttp2Stream::ReadStop() {
905902
id_, 0);
906903
}
907904

908-
nghttp2_data_chunks_t::~nghttp2_data_chunks_t() {
909-
for (unsigned int n = 0; n < nbufs; n++) {
910-
free(buf[n].base);
911-
}
912-
}
913-
914905
Nghttp2Session::Callbacks::Callbacks(bool kHasGetPaddingCallback) {
915906
nghttp2_session_callbacks_new(&callbacks);
916907
nghttp2_session_callbacks_set_on_begin_headers_callback(

src/node_http2_core.h

Lines changed: 0 additions & 8 deletions

0 commit comments

Comments
 (0)