diff --git a/groups/ntc/ntcs/ntcs_chronology.cpp b/groups/ntc/ntcs/ntcs_chronology.cpp index 7769d3720..5f94843d3 100644 --- a/groups/ntc/ntcs/ntcs_chronology.cpp +++ b/groups/ntc/ntcs/ntcs_chronology.cpp @@ -840,18 +840,6 @@ bsl::string Chronology::convertToDateTime(Microseconds timeInMicroseconds) return bsl::string(buffer); } -bool Chronology::sortTimers(const bsl::shared_ptr& lhs, - const bsl::shared_ptr& rhs) -{ - const bdlb::NullableValue lhsDeadline = - lhs->deadline(); - - const bdlb::NullableValue rhsDeadline = - rhs->deadline(); - - return lhsDeadline < rhsDeadline; -} - Chronology::Chronology(ntcs::Interruptor* interruptor, bslma::Allocator* basicAllocator) : d_object("ntcs::Chronology") @@ -1407,12 +1395,6 @@ void Chronology::load(TimerVector* result) const if (d_parent_sp) { d_parent_sp->load(result); } - - if (!result->empty()) { - bsl::sort(result->begin(), - result->end(), - &Chronology::sortTimers); - } } bsl::size_t Chronology::numRegistered() const diff --git a/groups/ntc/ntcs/ntcs_chronology.h b/groups/ntc/ntcs/ntcs_chronology.h index a936495b9..53271cf44 100644 --- a/groups/ntc/ntcs/ntcs_chronology.h +++ b/groups/ntc/ntcs/ntcs_chronology.h @@ -451,11 +451,6 @@ class Chronology NTSCFG_FINAL : public ntci::Chronology /// the Unix epoch in a date/time format. static bsl::string convertToDateTime(Microseconds timeInMicroseconds); - /// Return true if the deadline of the specified 'lhs' timer is less than - /// the deadline of the specified 'rhs' timer. - static bool sortTimers(const bsl::shared_ptr& lhs, - const bsl::shared_ptr& rhs); - public: /// The time interval that is LLONG_MAX microseconds from the Unix /// epoch.