diff options
Autocommit at 06.05.2022 @ 09:16
1 files changed, 17 insertions, 17 deletions
| -rw-r--r-- | src/EventSystem/EventSystem.cpp | 34 |
diff --git a/src/EventSystem/EventSystem.cpp b/src/EventSystem/EventSystem.cpp index c581669..c5fc0c1 100644 --- a/src/EventSystem/EventSystem.cpp +++ b/src/EventSystem/EventSystem.cpp @@ -101,20 +101,20 @@ StatusCode EventSystem::buyTicket(const char* name, const Date& date, const Tick return events[ind].buyTicketFromReservation(Reservation(ticket), password); } -List<Ticket> EventSystem::queryFreeTickets(const char* name, const Date& date) { - unsigned ind = indexOfEvent(name, date); - - if (ind == events.get_count()) - return List<Ticket>(); - - List<Ticket> freeTickets; - - unsigned nextIndT = 0, nextIndR = 0; - for (unsigned r = 1; r <= events[ind].get_hall().get_rowCount(); r++) { - for (unsigned s = 1; s <= events[ind].get_hall().get_seatsPerRow(); s++) { - // TODO: finish - } - } - - return freeTickets; -} +// List<Ticket> EventSystem::queryFreeTickets(const char* name, const Date& date) { +// unsigned ind = indexOfEvent(name, date); +// +// if (ind == events.get_count()) +// return List<Ticket>(); +// +// List<Ticket> freeTickets; +// +// unsigned nextIndT = 0, nextIndR = 0; +// for (unsigned r = 1; r <= events[ind].get_hall().get_rowCount(); r++) { +// for (unsigned s = 1; s <= events[ind].get_hall().get_seatsPerRow(); s++) { +// // TODO: finish +// } +// } +// +// return freeTickets; +// } |
