From a5e5f4ccf55c61be72daa28e4e5b581a6dd9571b Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 10 Jun 2014 12:01:57 -0500 Subject: remove some debug tracers that shouldn't've been committed --- src/alarm-queue-simple.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/alarm-queue-simple.cpp b/src/alarm-queue-simple.cpp index 2e36380..fa6c0bc 100644 --- a/src/alarm-queue-simple.cpp +++ b/src/alarm-queue-simple.cpp @@ -105,25 +105,19 @@ bool SimpleAlarmQueue::find_next_alarm(Appointment& setme) const const auto beginning_of_minute = now.add_full (0, 0, 0, 0, 0, -now.seconds()); const auto appointments = m_planner->appointments().get(); - g_message ("planner has %zu appointments in it", (size_t)appointments.size()); + g_debug ("planner has %zu appointments in it", (size_t)appointments.size()); for(const auto& walk : appointments) { const std::pair trig {walk.uid, walk.begin}; - if (m_triggered.count(trig)) { - g_message ("skipping; already used"); + if (m_triggered.count(trig)) continue; - } - if (walk.begin < beginning_of_minute) { // has this one already passed? - g_message ("skipping; too old"); + if (walk.begin < beginning_of_minute) // has this one already passed? continue; - } - if (found && (tmp.begin < walk.begin)) { // do we already have a better match? - g_message ("skipping; bad match"); + if (found && (tmp.begin < walk.begin)) // do we already have a better match? continue; - } tmp = walk; found = true; -- cgit v1.2.3