@@ -2723,14 +2723,6 @@ void Http2Stream::Destroy(const FunctionCallbackInfo<Value>& args) {
27232723 stream->Destroy ();
27242724}
27252725
2726- // Prompt the Http2Stream to begin sending data to the JS land.
2727- void Http2Stream::FlushData (const FunctionCallbackInfo<Value>& args) {
2728- Http2Stream* stream;
2729- ASSIGN_OR_RETURN_UNWRAP (&stream, args.Holder ());
2730- stream->ReadStart ();
2731- Debug (stream, " data flushed to js" );
2732- }
2733-
27342726// Initiate a Push Promise and create the associated Http2Stream
27352727void Http2Stream::PushPromise (const FunctionCallbackInfo<Value>& args) {
27362728 Environment* env = Environment::GetCurrent (args);
@@ -3129,7 +3121,6 @@ void Initialize(Local<Object> target,
31293121 stream->SetClassName (FIXED_ONE_BYTE_STRING (env->isolate (), " Http2Stream" ));
31303122 env->SetProtoMethod (stream, " id" , Http2Stream::GetID);
31313123 env->SetProtoMethod (stream, " destroy" , Http2Stream::Destroy);
3132- env->SetProtoMethod (stream, " flushData" , Http2Stream::FlushData);
31333124 env->SetProtoMethod (stream, " priority" , Http2Stream::Priority);
31343125 env->SetProtoMethod (stream, " pushPromise" , Http2Stream::PushPromise);
31353126 env->SetProtoMethod (stream, " info" , Http2Stream::Info);
0 commit comments