From 1398f0c6de087ce5fd9a8b7408a5db31ca20c684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Thu, 5 Dec 2024 17:11:29 +0800 Subject: [PATCH] chore: rm useless code (#900) * chore: rm useless code * fix: lint --- src/generate/dayjs.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/generate/dayjs.ts b/src/generate/dayjs.ts index 91291ce30..88acae16c 100644 --- a/src/generate/dayjs.ts +++ b/src/generate/dayjs.ts @@ -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'; @@ -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 = {