Skip to content

Commit 29e38ab

Browse files
committed
src: remove unused perf_hooks uv handles
A couple of unused uv handles were accidentally left in env. PR-URL: #15368 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Brian White <[email protected]>
1 parent aa0917c commit 29e38ab

File tree

2 files changed

+0
-38
lines changed

2 files changed

+0
-38
lines changed

src/env-inl.h

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -503,33 +503,6 @@ inline std::map<std::string, uint64_t>* Environment::performance_marks() {
503503
return &performance_marks_;
504504
}
505505

506-
inline Environment* Environment::from_performance_check_handle(
507-
uv_check_t* handle) {
508-
return ContainerOf(&Environment::performance_check_handle_, handle);
509-
}
510-
511-
inline Environment* Environment::from_performance_idle_handle(
512-
uv_idle_t* handle) {
513-
return ContainerOf(&Environment::performance_idle_handle_, handle);
514-
}
515-
516-
inline Environment* Environment::from_performance_prepare_handle(
517-
uv_prepare_t* handle) {
518-
return ContainerOf(&Environment::performance_prepare_handle_, handle);
519-
}
520-
521-
inline uv_check_t* Environment::performance_check_handle() {
522-
return &performance_check_handle_;
523-
}
524-
525-
inline uv_idle_t* Environment::performance_idle_handle() {
526-
return &performance_idle_handle_;
527-
}
528-
529-
inline uv_prepare_t* Environment::performance_prepare_handle() {
530-
return &performance_prepare_handle_;
531-
}
532-
533506
inline IsolateData* Environment::isolate_data() const {
534507
return isolate_data_;
535508
}

src/env.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -597,14 +597,6 @@ class Environment {
597597
inline performance::performance_state* performance_state();
598598
inline std::map<std::string, uint64_t>* performance_marks();
599599

600-
static inline Environment* from_performance_check_handle(uv_check_t* handle);
601-
static inline Environment* from_performance_idle_handle(uv_idle_t* handle);
602-
static inline Environment* from_performance_prepare_handle(
603-
uv_prepare_t* handle);
604-
inline uv_check_t* performance_check_handle();
605-
inline uv_idle_t* performance_idle_handle();
606-
inline uv_prepare_t* performance_prepare_handle();
607-
608600
inline void ThrowError(const char* errmsg);
609601
inline void ThrowTypeError(const char* errmsg);
610602
inline void ThrowRangeError(const char* errmsg);
@@ -684,9 +676,6 @@ class Environment {
684676
uv_timer_t destroy_ids_timer_handle_;
685677
uv_prepare_t idle_prepare_handle_;
686678
uv_check_t idle_check_handle_;
687-
uv_prepare_t performance_prepare_handle_;
688-
uv_check_t performance_check_handle_;
689-
uv_idle_t performance_idle_handle_;
690679

691680
AsyncHooks async_hooks_;
692681
DomainFlag domain_flag_;

0 commit comments

Comments
 (0)