Skip to content

Commit 8e8d0b3

Browse files
addaleaxgibfahn
authored andcommitted
src: remove unused async hooks methods
PR-URL: nodejs#17757 Backport-PR-URL: nodejs#18179 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: vdeturckheim <[email protected]>
1 parent 52b71a2 commit 8e8d0b3

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/env-inl.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,11 @@ Environment::AsyncHooks::fields() {
117117
return fields_;
118118
}
119119

120-
inline int Environment::AsyncHooks::fields_count() const {
121-
return kFieldsCount;
122-
}
123-
124120
inline AliasedBuffer<double, v8::Float64Array>&
125121
Environment::AsyncHooks::async_id_fields() {
126122
return async_id_fields_;
127123
}
128124

129-
inline int Environment::AsyncHooks::async_id_fields_count() const {
130-
return kUidFieldsCount;
131-
}
132-
133125
inline v8::Local<v8::String> Environment::AsyncHooks::provider_string(int idx) {
134126
return providers_[idx].Get(isolate_);
135127
}

src/env.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,7 @@ class Environment {
408408
AsyncHooks() = delete;
409409

410410
inline AliasedBuffer<uint32_t, v8::Uint32Array>& fields();
411-
inline int fields_count() const;
412-
413411
inline AliasedBuffer<double, v8::Float64Array>& async_id_fields();
414-
inline int async_id_fields_count() const;
415412

416413
inline v8::Local<v8::String> provider_string(int idx);
417414

0 commit comments

Comments
 (0)