Skip to content

Commit

Permalink
Удаление лишенго кода
Browse files Browse the repository at this point in the history
  • Loading branch information
egorarud committed Mar 7, 2024
1 parent a636f03 commit 591d166
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 112 deletions.
23 changes: 0 additions & 23 deletions src/mock/d.js

This file was deleted.

16 changes: 0 additions & 16 deletions src/mock/destination.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { getRandomArrayElement, getRandomInteger } from '../util.js';
const MAX_INT = 1000;
const MIN_INT = 10;

// const createDestinationId = createId();

const destinations = [
{
id: 'dest1',
Expand Down Expand Up @@ -44,17 +42,3 @@ const destinations = [
];

export {destinations};

// function createDestinations() {
// return {
// id: createDestinationId(),
// description: getRandomArrayElement(DESCRIPTIONS),
// name: getRandomArrayElement(CITIES),
// pictures: [
// {
// src: `https://loremflickr.com/248/152?random=${getRandomInteger(MIN_INT, MAX_INT)}`,
// description: getRandomArrayElement(DESCRIPTIONS)
// }]
// };
// }

35 changes: 0 additions & 35 deletions src/mock/o.js

This file was deleted.

15 changes: 0 additions & 15 deletions src/mock/offers.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { MAX_PRICE, MIN_PRICE } from '../const.js';
import { getRandomInteger } from '../util.js';

// const createOfferId = createId();

const offers = [
{
type: 'taxi',
Expand Down Expand Up @@ -34,16 +32,3 @@ const offers = [
];

export {offers};

// function createDestinations() {
// return {
// type: getRandomArrayElement(POINT_TYPE),
// offers: [
// {
// id: createOfferId(),
// title: 'Upgrade',
// price: getRandomInteger(MIN_PRICE, MAX_PRICE)
// }]
// };
// }

21 changes: 0 additions & 21 deletions src/mock/p.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import dayjs from 'dayjs';

//const DATE_FORMAT = 'MMM D';

function formatEventDate(dueDate, dateFormat) {
return dueDate ? dayjs(dueDate).format(dateFormat) : '';
}
Expand Down

0 comments on commit 591d166

Please sign in to comment.