From ea4fc7bdda95be234a7f1185aad4c2432f6f96f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 16 Jul 2025 10:46:47 +0800 Subject: [PATCH] Separator: remove `formatArgs` It makes no sense. --- doc/json_schema.json | 4 ---- src/modules/separator/separator.c | 5 ----- 2 files changed, 9 deletions(-) diff --git a/doc/json_schema.json b/doc/json_schema.json index d74f47a2b..75148a5de 100644 --- a/doc/json_schema.json +++ b/doc/json_schema.json @@ -306,10 +306,6 @@ "description": "Output format of the module `PublicIp`. See Wiki for formatting syntax\n 1. {ip}: Public IP address\n 2. {location}: Location", "type": "string" }, - "separatorFormat": { - "description": "Output format of the module `Separator`. See Wiki for formatting syntax\n 1. {string}: Separator string\n 2. {outputColor}: Output color\n 3. {length}: Length", - "type": "string" - }, "shellFormat": { "description": "Output format of the module `Shell`. See Wiki for formatting syntax\n 1. {process-name}: Shell process name\n 2. {exe}: The first argument of the command line when running the shell\n 3. {exe-name}: Shell base name of arg0\n 4. {version}: Shell version\n 5. {pid}: Shell pid\n 6. {pretty-name}: Shell pretty name\n 7. {exe-path}: Shell full exe path\n 8. {tty}: Shell tty used", "type": "string" diff --git a/src/modules/separator/separator.c b/src/modules/separator/separator.c index 4a6118478..8f9b8f4e5 100644 --- a/src/modules/separator/separator.c +++ b/src/modules/separator/separator.c @@ -188,11 +188,6 @@ static FFModuleBaseInfo ffModuleInfo = { .parseJsonObject = (void*) ffParseSeparatorJsonObject, .printModule = (void*) ffPrintSeparator, .generateJsonConfig = (void*) ffGenerateSeparatorJsonConfig, - .formatArgs = FF_FORMAT_ARG_LIST(((FFModuleFormatArg[]) { - {"Separator string", "string"}, - {"Output color", "outputColor"}, - {"Length", "length"}, - })) }; void ffInitSeparatorOptions(FFSeparatorOptions* options)