@@ -2723,14 +2723,6 @@ void Http2Stream::Destroy(const FunctionCallbackInfo<Value>& args) {
2723
2723
stream->Destroy ();
2724
2724
}
2725
2725
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
-
2734
2726
// Initiate a Push Promise and create the associated Http2Stream
2735
2727
void Http2Stream::PushPromise (const FunctionCallbackInfo<Value>& args) {
2736
2728
Environment* env = Environment::GetCurrent (args);
@@ -3129,7 +3121,6 @@ void Initialize(Local<Object> target,
3129
3121
stream->SetClassName (FIXED_ONE_BYTE_STRING (env->isolate (), " Http2Stream" ));
3130
3122
env->SetProtoMethod (stream, " id" , Http2Stream::GetID);
3131
3123
env->SetProtoMethod (stream, " destroy" , Http2Stream::Destroy);
3132
- env->SetProtoMethod (stream, " flushData" , Http2Stream::FlushData);
3133
3124
env->SetProtoMethod (stream, " priority" , Http2Stream::Priority);
3134
3125
env->SetProtoMethod (stream, " pushPromise" , Http2Stream::PushPromise);
3135
3126
env->SetProtoMethod (stream, " info" , Http2Stream::Info);
0 commit comments