From dd44cf8b770c1bc3f4da51a3989e39c813816e21 Mon Sep 17 00:00:00 2001 From: June Date: Tue, 11 Jun 2024 00:07:37 +0500 Subject: [PATCH] fix --- src/presenter/waypoints-list-presenter.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/presenter/waypoints-list-presenter.js b/src/presenter/waypoints-list-presenter.js index 4175755..8d9445a 100644 --- a/src/presenter/waypoints-list-presenter.js +++ b/src/presenter/waypoints-list-presenter.js @@ -107,20 +107,6 @@ export default class WaypointsListPresenter { filteredPoints.forEach((waypoint) => this.#renderWaypoint(waypoint)); } - #renderInfo() { - const route = getRoute( - this.#sortWaypoints(SORTING_TYPES.DAY, this.waypointsModel.getWaypoints()), - this.waypointsModel.destinations - ); - this.#infoComponent = new InfoView({ - route: route.route, - routeDates: route.routeDates, - totalPrice: getTotalPrice(this.waypointsModel.getWaypoints(), this.waypointsModel.offers), - }); - - render(this.#infoComponent, this.#mainContainer, RenderPosition.AFTERBEGIN); - } - reset() { this.#waypointPresenters.forEach((waypointPresenter) => waypointPresenter.destroy()); this.#waypointPresenters = [];