From e397d19e58e65eac564b6c342d32a0a640c58c97 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 30 Apr 2018 13:29:50 +0200 Subject: [PATCH] http2: remove unnecessary v8 qualified names This commit removes v8 qualified identifiers that have using directives to be consistent with the rest of the code in node_http2.cc. PR-URL: https://github.com/nodejs/node/pull/20420 Reviewed-By: Anatoli Papirovski Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Colin Ihrig --- src/node_http2.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/node_http2.cc b/src/node_http2.cc index 05d9243ee30ec0..cb5c14a6faa20c 100644 --- a/src/node_http2.cc +++ b/src/node_http2.cc @@ -110,7 +110,7 @@ Http2Options::Http2Options(Environment* env) { // a bit differently. For now, let's let nghttp2 take care of it. nghttp2_option_set_builtin_recv_extension_type(options_, NGHTTP2_ALTSVC); - AliasedBuffer& buffer = + AliasedBuffer& buffer = env->http2_state()->options_buffer; uint32_t flags = buffer[IDX_OPTIONS_FLAGS]; @@ -191,7 +191,7 @@ Http2Options::Http2Options(Environment* env) { } void Http2Session::Http2Settings::Init() { - AliasedBuffer& buffer = + AliasedBuffer& buffer = env()->http2_state()->settings_buffer; uint32_t flags = buffer[IDX_SETTINGS_COUNT]; @@ -270,7 +270,7 @@ Local Http2Session::Http2Settings::Pack() { void Http2Session::Http2Settings::Update(Environment* env, Http2Session* session, get_setting fn) { - AliasedBuffer& buffer = + AliasedBuffer& buffer = env->http2_state()->settings_buffer; buffer[IDX_SETTINGS_HEADER_TABLE_SIZE] = fn(**session, NGHTTP2_SETTINGS_HEADER_TABLE_SIZE); @@ -288,7 +288,7 @@ void Http2Session::Http2Settings::Update(Environment* env, // Initializes the shared TypedArray with the default settings values. void Http2Session::Http2Settings::RefreshDefaults(Environment* env) { - AliasedBuffer& buffer = + AliasedBuffer& buffer = env->http2_state()->settings_buffer; buffer[IDX_SETTINGS_HEADER_TABLE_SIZE] = @@ -505,7 +505,7 @@ Http2Session::~Http2Session() { } inline bool HasHttp2Observer(Environment* env) { - AliasedBuffer& observers = + AliasedBuffer& observers = env->performance_state()->observers; return observers[performance::NODE_PERFORMANCE_ENTRY_TYPE_HTTP2] != 0; } @@ -522,7 +522,7 @@ void Http2Stream::EmitStatistics() { if (!HasHttp2Observer(env)) return; HandleScope handle_scope(env->isolate()); - AliasedBuffer& buffer = + AliasedBuffer& buffer = env->http2_state()->stream_stats_buffer; buffer[IDX_STREAM_STATS_ID] = entry->id(); if (entry->first_byte() != 0) { @@ -561,7 +561,7 @@ void Http2Session::EmitStatistics() { if (!HasHttp2Observer(env)) return; HandleScope handle_scope(env->isolate()); - AliasedBuffer& buffer = + AliasedBuffer& buffer = env->http2_state()->session_stats_buffer; buffer[IDX_SESSION_STATS_TYPE] = entry->type(); buffer[IDX_SESSION_STATS_PINGRTT] = entry->ping_rtt() / 1e6; @@ -690,7 +690,7 @@ ssize_t Http2Session::OnCallbackPadding(size_t frameLen, Local context = env()->context(); Context::Scope context_scope(context); - AliasedBuffer& buffer = + AliasedBuffer& buffer = env()->http2_state()->padding_buffer; buffer[PADDING_BUF_FRAME_LENGTH] = frameLen; buffer[PADDING_BUF_MAX_PAYLOAD_LENGTH] = maxPayloadLen; @@ -2158,7 +2158,7 @@ void Http2Session::RefreshState(const FunctionCallbackInfo& args) { ASSIGN_OR_RETURN_UNWRAP(&session, args.Holder()); DEBUG_HTTP2SESSION(session, "refreshing state"); - AliasedBuffer& buffer = + AliasedBuffer& buffer = env->http2_state()->session_state_buffer; nghttp2_session* s = **session; @@ -2448,7 +2448,7 @@ void Http2Stream::RefreshState(const FunctionCallbackInfo& args) { DEBUG_HTTP2STREAM(stream, "refreshing state"); - AliasedBuffer& buffer = + AliasedBuffer& buffer = env->http2_state()->stream_state_buffer; nghttp2_stream* str = **stream;