aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-06-10 12:01:57 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-06-10 12:01:57 -0500
commita5e5f4ccf55c61be72daa28e4e5b581a6dd9571b (patch)
tree2785b76d4c2e177429e46ee074f3e1e16f097c5e /src
parent03a7615f1ff6f4bb1d8bf955c042151336edac9b (diff)
downloadayatana-indicator-datetime-a5e5f4ccf55c61be72daa28e4e5b581a6dd9571b.tar.gz
ayatana-indicator-datetime-a5e5f4ccf55c61be72daa28e4e5b581a6dd9571b.tar.bz2
ayatana-indicator-datetime-a5e5f4ccf55c61be72daa28e4e5b581a6dd9571b.zip
remove some debug tracers that shouldn't've been committed
Diffstat (limited to 'src')
-rw-r--r--src/alarm-queue-simple.cpp14
1 files 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<std::string,DateTime> 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;