]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[misc] Remove unused imports (#5260)
authorPedro Luiz Cabral Salomon Prado <pedroprado010@users.noreply.github.com>
Thu, 23 Apr 2020 19:04:27 +0000 (16:04 -0300)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2020 19:04:27 +0000 (22:04 +0300)
src/lib/create/from-string.js
src/lib/duration/bubble.js
src/lib/locale/locales.js
src/lib/moment/constructor.js
src/lib/units/day-of-year.js
src/lib/units/week-calendar-utils.js
src/lib/units/week-year.js
src/lib/units/week.js
src/lib/utils/deprecate.js

index 9ea014ab2635da60d851f757a7ba4d4f43b564d8..bab65a85896e37d394f64b9d67027ce571b277e8 100644 (file)
@@ -1,6 +1,5 @@
 import { configFromStringAndFormat } from './from-string-and-format';
 import { createUTCDate } from './date-from-array';
-import { configFromArray } from './from-array';
 import { hooks } from '../utils/hooks';
 import { deprecate } from '../utils/deprecate';
 import getParsingFlags from './parsing-flags';
index 0c4a336ec47d3b89fa3e077be878a4caa7d7c7a4..d13316a220896ebd957f0b51bc22fbccc8ffe90e 100644 (file)
@@ -1,6 +1,5 @@
 import absFloor from '../utils/abs-floor';
 import absCeil from '../utils/abs-ceil';
-import { createUTCDate } from '../create/date-from-array';
 
 export function bubble () {
     var milliseconds = this._milliseconds;
index b0e030dba8eef38e9f631581698b558907051153..e3e87d26dd0c88ff59cfe51d99fb599d03c48dac 100644 (file)
@@ -1,5 +1,4 @@
 import isArray from '../utils/is-array';
-import hasOwnProp from '../utils/has-own-prop';
 import isUndefined from '../utils/is-undefined';
 import compareArrays from '../utils/compare-arrays';
 import { deprecateSimple } from '../utils/deprecate';
index bc53f814fcda507cb7a59e6ff1bd832822fb8934..17ccccfc3e90f6bcaf747f942d0832330adf461a 100644 (file)
@@ -1,5 +1,4 @@
 import { hooks } from '../utils/hooks';
-import hasOwnProp from '../utils/has-own-prop';
 import isUndefined from '../utils/is-undefined';
 import getParsingFlags from '../create/parsing-flags';
 
index 6fe931c1e46fbe36794d9b30d0f55c3ebac521bd..bdc8316e603671e7e6e655379641a00ddcd22bce 100644 (file)
@@ -2,8 +2,6 @@ import { addFormatToken } from '../format/format';
 import { addUnitAlias } from './aliases';
 import { addUnitPriority } from './priorities';
 import { addRegexToken, match3, match1to3 } from '../parse/regex';
-import { daysInYear } from './year';
-import { createUTCDate } from '../create/date-from-array';
 import { addParseToken } from '../parse/token';
 import toInt from '../utils/to-int';
 
index 5be8a5fa6eca9959513f45fbbbd3f2d991df7b0a..b9aaab6d39e627183d76293314403d0d0c494593 100644 (file)
@@ -1,5 +1,4 @@
 import { daysInYear } from './year';
-import { createLocal } from '../create/local';
 import { createUTCDate } from '../create/date-from-array';
 
 // start-of-first-week - start-of-year
index 7fa5425bccbf4d0a62e28801c2e9a4ef6da492b8..d7edd05481ce0c2637d2a38beeabef056d2d125e 100644 (file)
@@ -6,7 +6,6 @@ import { addWeekParseToken } from '../parse/token';
 import { weekOfYear, weeksInYear, dayOfYearFromWeeks } from './week-calendar-utils';
 import toInt from '../utils/to-int';
 import { hooks } from '../utils/hooks';
-import { createLocal } from '../create/local';
 import { createUTCDate } from '../create/date-from-array';
 
 // FORMATTING
index fbb669eafa0e093b5a432e0d31d0fdf589988d8f..89c4ceef5e2de9d2043daf6a8f6c36812147a332 100644 (file)
@@ -4,7 +4,6 @@ import { addUnitPriority } from './priorities';
 import { addRegexToken, match1to2, match2 } from '../parse/regex';
 import { addWeekParseToken } from '../parse/token';
 import toInt from '../utils/to-int';
-import { createLocal } from '../create/local';
 import { weekOfYear } from './week-calendar-utils';
 
 // FORMATTING
index 8b4c87a280551ce91636911a3fdf81b9bea8b0ae..d1a6dc65fb99d2563386d7dcfddc4fdb58814ca7 100644 (file)
@@ -1,6 +1,5 @@
 import extend from './extend';
 import { hooks } from './hooks';
-import isUndefined from './is-undefined';
 
 function warn(msg) {
     if (hooks.suppressDeprecationWarnings === false &&