From 66bd13b193b666e77c00ccea0fea508134c5397a Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Fri, 16 Aug 2024 09:17:39 +0200 Subject: [PATCH] Remove unused PHUICalendarMonthView::getMaxDailyEventsForWeek() Summary: Call to this private function was removed in https://we.phorge.it/rPaee9d88c17e25b924ecd5293691cc6fe38d6c7d9. Test Plan: Grep the code; run static code analysis. Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25788 --- src/view/phui/calendar/PHUICalendarMonthView.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/view/phui/calendar/PHUICalendarMonthView.php b/src/view/phui/calendar/PHUICalendarMonthView.php index 752a9afa15..be5e50f667 100644 --- a/src/view/phui/calendar/PHUICalendarMonthView.php +++ b/src/view/phui/calendar/PHUICalendarMonthView.php @@ -193,18 +193,6 @@ final class PHUICalendarMonthView extends AphrontView { return $box; } - private function getMaxDailyEventsForWeek($week_of_cell_lists) { - $max_count = 0; - - foreach ($week_of_cell_lists as $cell_list) { - if ($cell_list['count'] > $max_count) { - $max_count = $cell_list['count']; - } - } - - return $max_count; - } - private function getEventListCell($event_list) { $list = $event_list['list']; $class = $event_list['class'];