Skip to content

Commit dcc41fd

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 <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Brian White <mscdex@mscdex.net>
1 parent 1aca135 commit dcc41fd

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
@@ -529,33 +529,6 @@ inline std::map<std::string, uint64_t>* Environment::performance_marks() {
529529
return &performance_marks_;
530530
}
531531

532-
inline Environment* Environment::from_performance_check_handle(
533-
uv_check_t* handle) {
534-
return ContainerOf(&Environment::performance_check_handle_, handle);
535-
}
536-
537-
inline Environment* Environment::from_performance_idle_handle(
538-
uv_idle_t* handle) {
539-
return ContainerOf(&Environment::performance_idle_handle_, handle);
540-
}
541-
542-
inline Environment* Environment::from_performance_prepare_handle(
543-
uv_prepare_t* handle) {
544-
return ContainerOf(&Environment::performance_prepare_handle_, handle);
545-
}
546-
547-
inline uv_check_t* Environment::performance_check_handle() {
548-
return &performance_check_handle_;
549-
}
550-
551-
inline uv_idle_t* Environment::performance_idle_handle() {
552-
return &performance_idle_handle_;
553-
}
554-
555-
inline uv_prepare_t* Environment::performance_prepare_handle() {
556-
return &performance_prepare_handle_;
557-
}
558-
559532
inline IsolateData* Environment::isolate_data() const {
560533
return isolate_data_;
561534
}

src/env.h

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

620-
static inline Environment* from_performance_check_handle(uv_check_t* handle);
621-
static inline Environment* from_performance_idle_handle(uv_idle_t* handle);
622-
static inline Environment* from_performance_prepare_handle(
623-
uv_prepare_t* handle);
624-
inline uv_check_t* performance_check_handle();
625-
inline uv_idle_t* performance_idle_handle();
626-
inline uv_prepare_t* performance_prepare_handle();
627-
628620
inline void ThrowError(const char* errmsg);
629621
inline void ThrowTypeError(const char* errmsg);
630622
inline void ThrowRangeError(const char* errmsg);
@@ -704,9 +696,6 @@ class Environment {
704696
uv_timer_t destroy_ids_timer_handle_;
705697
uv_prepare_t idle_prepare_handle_;
706698
uv_check_t idle_check_handle_;
707-
uv_prepare_t performance_prepare_handle_;
708-
uv_check_t performance_check_handle_;
709-
uv_idle_t performance_idle_handle_;
710699

711700
AsyncHooks async_hooks_;
712701
DomainFlag domain_flag_;

0 commit comments

Comments
 (0)