From dc05d9ddaf94f669b45e342361c4905f090459f3 Mon Sep 17 00:00:00 2001 From: drigato Date: Tue, 17 Dec 2013 17:09:59 -0500 Subject: [PATCH] CC-5649: Remove unused function, Application_Model_Show::populateAllShowsInRange --- airtime_mvc/application/models/Show.php | 35 ------------------------- 1 file changed, 35 deletions(-) diff --git a/airtime_mvc/application/models/Show.php b/airtime_mvc/application/models/Show.php index 4271d2d55..e5daff311 100644 --- a/airtime_mvc/application/models/Show.php +++ b/airtime_mvc/application/models/Show.php @@ -920,41 +920,6 @@ SQL; ->save(); } - /** - * Generate all the repeating shows in the given range. - * - * @param DateTime $p_startTimestamp - * In UTC format. - * @param DateTime $p_endTimestamp - * In UTC format. - */ - public static function populateAllShowsInRange($p_startTimestamp, $p_endTimestamp) - { - $con = Propel::getConnection(); - - $endTimeString = $p_endTimestamp->format("Y-m-d H:i:s"); - if (!is_null($p_startTimestamp)) { - $startTimeString = $p_startTimestamp->format("Y-m-d H:i:s"); - } else { - $today_timestamp = new DateTime("now", new DateTimeZone("UTC")); - $startTimeString = $today_timestamp->format("Y-m-d H:i:s"); - } - - $stmt = $con->prepare(" - SELECT * FROM cc_show_days - WHERE last_show IS NULL - OR first_show < :endTimeString AND last_show > :startTimeString"); - - $stmt->bindParam(':endTimeString', $endTimeString); - $stmt->bindParam(':startTimeString', $startTimeString); - $stmt->execute(); - - $res = $stmt->fetchAll(); - foreach ($res as $row) { - Application_Model_Show::populateShow($row, $p_endTimestamp); - } - } - /** * * @param DateTime $start