Skip to content

Commit

Permalink
chore: rm useless code (#900)
Browse files Browse the repository at this point in the history
* chore: rm useless code

* fix: lint
  • Loading branch information
zombieJ authored Dec 5, 2024
1 parent 6bebb39 commit 1398f0c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/generate/dayjs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Dayjs } from 'dayjs';
import dayjs from 'dayjs';
import { noteOnce } from 'rc-util/lib/warning';
import weekday from 'dayjs/plugin/weekday';
import localeData from 'dayjs/plugin/localeData';
import weekOfYear from 'dayjs/plugin/weekOfYear';
Expand Down Expand Up @@ -100,9 +99,13 @@ const parseLocale = (locale: string) => {
return mapLocale || locale.split('_')[0];
};

/* istanbul ignore next */
const parseNoMatchNotice = () => {
/* istanbul ignore next */
noteOnce(false, 'Not match any format. Please help to fire a issue about this.');
// zombieJ:
// When user typing, its always miss match format.
// This check is meaningless.
// https://github.com/ant-design/ant-design/issues/51839
// noteOnce(false, 'Not match any format. Please help to fire a issue about this.');
};

const generateConfig: GenerateConfig<Dayjs> = {
Expand Down

0 comments on commit 1398f0c

Please sign in to comment.