lightningd: remove deprecated plugin entries.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Removed: JSON API: `listconfigs` duplicated "plugin" paths (deprecated 0.8.0)
This commit is contained in:
Rusty Russell 2020-09-15 14:23:08 +09:30
parent eab14768a8
commit 99ff474308

View File

@ -1559,18 +1559,8 @@ void json_add_opt_plugins_array(struct json_stream *response,
void json_add_opt_plugins(struct json_stream *response, void json_add_opt_plugins(struct json_stream *response,
const struct plugins *plugins) const struct plugins *plugins)
{ {
struct plugin *p;
json_add_opt_plugins_array(response, "plugins", plugins, false); json_add_opt_plugins_array(response, "plugins", plugins, false);
json_add_opt_plugins_array(response, "important-plugins", plugins, true); json_add_opt_plugins_array(response, "important-plugins", plugins, true);
/* DEPRECATED: duplicated JSON "plugin" entries */
if (deprecated_apis) {
list_for_each(&plugins->plugins, p, list) {
json_add_string(response, p->important ? "important-plugin" : "plugin", p->cmd);
}
}
} }
void json_add_opt_disable_plugins(struct json_stream *response, void json_add_opt_disable_plugins(struct json_stream *response,