diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-08-15 15:49:34 +0200 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-08-17 07:31:54 -0700 |
commit | 9b7362c460c0bd3073fd96c0151f4b670fece27a (patch) | |
tree | ca89747c79bf11a98b0beb488b7566fff398c035 /src | |
parent | 0daec61b9bdefbde1026f0dacb7ee38eb6a91771 (diff) | |
download | node-new-9b7362c460c0bd3073fd96c0151f4b670fece27a.tar.gz |
http2: remove unused FlushData() function
PR-URL: https://github.com/nodejs/node/pull/29145
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/node_http2.cc | 9 | ||||
-rw-r--r-- | src/node_http2.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/node_http2.cc b/src/node_http2.cc index 8cb1158b55..38686dc750 100644 --- a/src/node_http2.cc +++ b/src/node_http2.cc @@ -2723,14 +2723,6 @@ void Http2Stream::Destroy(const FunctionCallbackInfo<Value>& args) { stream->Destroy(); } -// Prompt the Http2Stream to begin sending data to the JS land. -void Http2Stream::FlushData(const FunctionCallbackInfo<Value>& args) { - Http2Stream* stream; - ASSIGN_OR_RETURN_UNWRAP(&stream, args.Holder()); - stream->ReadStart(); - Debug(stream, "data flushed to js"); -} - // Initiate a Push Promise and create the associated Http2Stream void Http2Stream::PushPromise(const FunctionCallbackInfo<Value>& args) { Environment* env = Environment::GetCurrent(args); @@ -3129,7 +3121,6 @@ void Initialize(Local<Object> target, stream->SetClassName(FIXED_ONE_BYTE_STRING(env->isolate(), "Http2Stream")); env->SetProtoMethod(stream, "id", Http2Stream::GetID); env->SetProtoMethod(stream, "destroy", Http2Stream::Destroy); - env->SetProtoMethod(stream, "flushData", Http2Stream::FlushData); env->SetProtoMethod(stream, "priority", Http2Stream::Priority); env->SetProtoMethod(stream, "pushPromise", Http2Stream::PushPromise); env->SetProtoMethod(stream, "info", Http2Stream::Info); diff --git a/src/node_http2.h b/src/node_http2.h index 9c032f02d1..792078d126 100644 --- a/src/node_http2.h +++ b/src/node_http2.h @@ -581,7 +581,6 @@ class Http2Stream : public AsyncWrap, // JavaScript API static void GetID(const FunctionCallbackInfo<Value>& args); static void Destroy(const FunctionCallbackInfo<Value>& args); - static void FlushData(const FunctionCallbackInfo<Value>& args); static void Priority(const FunctionCallbackInfo<Value>& args); static void PushPromise(const FunctionCallbackInfo<Value>& args); static void RefreshState(const FunctionCallbackInfo<Value>& args); |