diff options
author | Robert Tari <robert@tari.in> | 2021-12-17 12:58:36 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-02-08 18:30:04 +0100 |
commit | b7df5a9578ab32ac3c67fc8e0c0490d8bb286fb1 (patch) | |
tree | 49671b506b01195f9f004b9ef12d2b057ffd6b92 | |
parent | 02cc4073ae00af6287e4086b9c8ffa2be55cda67 (diff) | |
download | ayatana-indicator-datetime-b7df5a9578ab32ac3c67fc8e0c0490d8bb286fb1.tar.gz ayatana-indicator-datetime-b7df5a9578ab32ac3c67fc8e0c0490d8bb286fb1.tar.bz2 ayatana-indicator-datetime-b7df5a9578ab32ac3c67fc8e0c0490d8bb286fb1.zip |
src/menu.cpp: Remove redundant code block:
Since a_after_today and b_after_today are the same, comparing them is pointless.
-rw-r--r-- | src/menu.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/menu.cpp b/src/menu.cpp index ab0bd71..57a0249 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -107,10 +107,6 @@ Menu::get_display_appointments(const std::vector<Appointment>& appointments_in, if (a_full_day_today != b_full_day_today) return a_full_day_today; - const bool a_after_today = (a.begin > end_of_day) || (a.end > end_of_day); - const bool b_after_today = (a.begin > end_of_day) || (a.end > end_of_day); - if (a_after_today != b_after_today) - return a_after_today; if (a.begin != b.begin) return a.begin < b.begin; if (b.end != b.end) |